Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug(rule): unique-headings not ignored #759

Open
Kristinita opened this issue Oct 14, 2019 · 0 comments
Open

bug(rule): unique-headings not ignored #759

Kristinita opened this issue Oct 14, 2019 · 0 comments

Comments

@Kristinita
Copy link

Kristinita commented Oct 14, 2019

1. Summary

I couldn't ignore unique-headings rule, use ignoring parts of CSS during linting.

I don't reproduce this issue for another CSSLint rules.

2. Environment

  • Windows 10.0.18362 Enterprise 64-bit EN
  • Node.js 12.12.0
  • csslint 1.0.4

3. Data

  • KiraIgnoreHeadings.css:
/* csslint ignore:start */

h1,
.SashaFirstClass {
    font-family: sans-serif
}

h1,
.SashaSecondClass {
    font-style: italic
}

/* csslint ignore:end */

4. Steps to reproduce

csslint KiraIgnoreHeadings.css

I reproduce the problem for CSSLint online.

5. Expected behavior

No errors and/or warnings.

6. Actual behavior

csslint: There is 1 problem in D:\SashaDebugging\KiraCSSLint\KiraIgnoreHeadings.css.

KiraIgnoreHeadings.css
1: warning
You have 2 h1s defined in this stylesheet.

7. Not helped

  1. I can't use ignoring rules per line, because I use Stylus → I can't preserve comment on specific line after Stylus to CSS compilation.
  2. peterorum answer doesn't work for me, see my comment.

8. Don't offer

8.1. “You don't need to ignore this option”

Please, read #80. I agree with users @trygve-lie and @Nateowami.

Thanks.

@Kristinita Kristinita changed the title bug(rule): qualified-headings not ignored bug(rule): unique-headings not ignored Oct 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant