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

sass-lint:disable-block re-enables rules after sass-lint:disable #1291

Open
danfishgold opened this issue Aug 8, 2019 · 0 comments
Open

Comments

@danfishgold
Copy link

.sass-lint.yml:

rules:
  border-zero: 2

sscce.sass:

// sass-lint:disable border-zero
.a
  // sass-lint:disable-block border-zero
  .b
    border: none

.c
  border: none

Command: $ sass-lint sscce.sass -v
Expected result: no errors due to sass-lint:disable on line 1
Actual result: error on line 8

sscce.sass
  8:11  error  A value of `none` is not allowed. `0` must be used  border-zero

I'm using Sass Lint version 1.13.1

My guess is that disable-block re-enables the rule at the end of the block, regardless of disables on higher level blocks.

@danfishgold danfishgold changed the title sass-lint:disable-block cancels sass-lint:disable before it sass-lint:disable-block cancels sass-lint:disable Aug 8, 2019
@danfishgold danfishgold changed the title sass-lint:disable-block cancels sass-lint:disable sass-lint:disable-block re-enables rules after sass-lint:disable Aug 8, 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