Rule "scss/at-import-partial-extension" is too broad
See original GitHub issueSince updating to Stylelint 14, we have occurrences of "scss/at-import-partial-extension"
errors.
But they complain about @import '../shared/toast.vars';
for example, where we have a file toast.vars.scss (others are _foo.mixins.scss, or similar, in the spirit of Angular’s buzz.component.ts for example).
I believe this rule should complain only about a limited set of known extensions, those Sass can infer.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:5
- Comments:5
Top Results From Across the Web
stylelint-scss - npm
A collection of SCSS specific rules for Stylelint. ... at-import-partial-extension : Require or disallow extension in @import commands.
Read more >stylelint-scss/README.md - UNPKG
src/rules/at-import-partial-extension-whitelist/README.md): Specify whitelist of allowed file extensions for partial names in `@import` commands.
Read more >Using SASS partials - DEV Community
A partial is simply an Sass file preceded by an underscore. An example is _name-of-file.scss . The underscore tells Sass that the file...
Read more >How to extend a class from a CSS file in Sass? - Stack Overflow
1 Answer 1 ; @import 'library.css'; ; @import 'library'; .b { @extend .a } ; a · color: red; } ;.b · @extend...
Read more >How to Use Sass import Rule to Combine SCSS/CSS ...
So we can say that the manifest file imports a partial. Importing CSS file. We can easily import CSS files in the sass...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hmm, it might be that the rule does not properly handle files with dots in the filename. I’ll mark this as a bug.
Fixed in #612