question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Rule "scss/at-import-partial-extension" is too broad

See original GitHub issue

Since 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:closed
  • Created 2 years ago
  • Reactions:5
  • Comments:5

github_iconTop GitHub Comments

1reaction
kristerkaricommented, Jan 31, 2022

Hmm, it might be that the rule does not properly handle files with dots in the filename. I’ll mark this as a bug.

0reactions
kristerkaricommented, Jul 8, 2022

Fixed in #612

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found