
rules.scsslint.ImportPath.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sonar-web-frontend-scss Show documentation
Show all versions of sonar-web-frontend-scss Show documentation
Consume reports generated by scsslint for code quality. Also consume reports for code duplication (either simian or cpd). The information generated by reports are added in Sonar
Details
The basenames of @import
ed 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)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy