1.0.3 • Published 3 years ago
stylelint-scss-no-relative-imports v1.0.3
stylelint-scss-no-relative-imports
A rule which allow fix and warn relative imports of SCSS for Stylelint
Installation
Install with npm
npm i --save-dev stylelint-scss-no-relative-importsUsage/Examples
This plugin will fix foutes from project root path by box.
Create the .stylelintrc.json config file (or open the existing one), add stylelint-scss-no-relative-imports to the plugins array and the rules you need to the rules list. All rules from stylelint-scss-no-relative-imports need to be namespaced with scss.
{
"plugins": [
"stylelint-scss-no-relative-imports"
],
"rules": {
"stylelint-scss-no-relative-imports/no-relative-imports": true
}
}List of rules
@-import
no-relative-imports: This is the rule which check and fix import path if it go top to the directories relativetely.