The basenames of @imported SCSS partials should not begin with an underscore
and should not include the filename extension.
Bad
@import "foo/_bar.scss";
@import "_bar.scss";
@import "_bar";
@import "bar.scss";Good
@import "foo/bar";
@import "bar";You can configure this linter to instead ensure that you do include the
leading underscore or the filename extension by setting either option to
true. Being explicit might have its place, as long as you are consistent.
@import declarations that Sass compiles directly into CSS @import rules
will be ignored.
| Configuration Option | Description |
|---|---|
leading_underscore |
false or true (default false) |
filename_extension |
false or true (default false) |