Skip to content

Added "include" as allowed at-rule in hasOnlyAllowedAtRules function#146

Open
DKvistgaard wants to merge 2 commits intopostcss:masterfrom
DKvistgaard:master
Open

Added "include" as allowed at-rule in hasOnlyAllowedAtRules function#146
DKvistgaard wants to merge 2 commits intopostcss:masterfrom
DKvistgaard:master

Conversation

@DKvistgaard
Copy link

This extends the fix in #140, but fixes linting for selectors that only includes at-rules with @include within it for better Sass/SCSS support.

The error:

/** @define foo */

.foo {}

// This selector is ignored even though it's an error, as it only contains
// an @include at-rule
.bar {
    @include col-init();
}

// This is also ignored even though it contains the allow @extend at-rule as it
// also includes the @include at-rule and no other styling properties
.test {
    @include col-init();

    @extend %test-extend;
}

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

Successfully merging this pull request may close these issues.

1 participant