Skip to content

Style attributes in HTML being flagged as errors #25

@smlombardi

Description

@smlombardi

What version of stylelint, prettier and stylelint-prettier are you using?

    "stylelint": "10.0.1",
    "stylelint-config-prettier": "5.2.0",
    "stylelint-prettier": "1.1.0"

Please paste any applicable config files that you're using (e.g. .prettierrc or .stylelintrc files)

{
  "printWidth": 120,
  "singleQuote": true,
  "useTabs": false,
  "tabWidth": 2,
  "semi": true,
  "bracketSpacing": true
 }
{
  "plugins": ["stylelint-prettier"],
  "extends": ["stylelint-prettier/recommended"],
  "rules": {
    "at-rule-empty-line-before": null,
    "at-rule-no-unknown": null,
    "declaration-colon-newline-after": null,
    "declaration-empty-line-before": null,
    "max-empty-lines": 4,
    "indentation": 2,
    "no-eol-whitespace": [
      true,
      {
        "ignore": ["empty-lines"]
      }
    ],
    "number-leading-zero": null,
    "no-empty-source": null,
    "rule-empty-line-before": null,
    "selector-list-comma-newline-after": "always-multi-line",
    "selector-list-comma-space-after": "always-single-line",
    "selector-pseudo-element-colon-notation": "double",
    "selector-type-no-unknown": null,
    "string-no-newline": null,
    "no-missing-end-of-source-newline": null,
    "no-descending-specificity": null,
    "no-duplicate-selectors": null,
    "unit-whitelist": ["em", "rem", "s", "px", "%", "deg", "ms", "vh", "vw", "dppx", "dpi", "fr"],
    "prettier/prettier": [
      true,
      {
        "singleQuote": false,
        "tabWidth": 2
      }
    ]
  }
}

What source code are you linting?

 <p class="mb-0"
         style="font-size: 12px;">
        By clicking "Complete My Application" you agree to
        <a class="fake-link">our terms of use</a>,
        <a class="fake-link">privacy</a>
        and
        <a class="fake-link">refund policies</a>.
      </p>

What did you expect to happen?
The style tag is valid html and should not be flagged

What actually happened?
Screen Shot 2019-05-28 at 9 29 14 AM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions