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

no-invalid-position-at-import-rule false positive with @use #5322

Closed
boris-petrov opened this issue May 25, 2021 · 1 comment
Closed

no-invalid-position-at-import-rule false positive with @use #5322

boris-petrov opened this issue May 25, 2021 · 1 comment

Comments

@boris-petrov
Copy link

@use 'sass:math';

@import 'bootstrap';

This leads to a no-invalid-position-at-import-rule warning which is wrong because I can't put @use after the @import statement.

Which rule, if any, is the bug related to?

no-invalid-position-at-import-rule

What code is needed to reproduce the bug?

See above.

What stylelint configuration is needed to reproduce the bug?

{
  "rules": {
    "no-invalid-position-at-import-rule": true
  }
}

Which version of stylelint are you using?

13.13.1

How are you running stylelint: CLI, PostCSS plugin, Node.js API?

CLI

Does the bug relate to non-standard syntax (e.g. SCSS, Less etc.)?

Yes, SCSS.

What did you expect to happen?

No warnings to be flagged.

What actually happened (e.g. what warnings or errors did you get)?

There is a warning.

This issue is similar to #5263.

@hudochenkov
Copy link
Member

This rule is for CSS. You can disable it for Sass: #5133 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants