-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Expected Behaviour
Stylelint autofix produces code with right indentation.
This
.ab {
box-shadow: 0 0 0 1px #5b9dd9,
0 0 2px 1px red;
}
after stylelint test/*.scss --fix is transformed into this
.ab {
box-shadow:
0 0 0 1px #5b9dd9,
0 0 2px 1px red;
}
Actual Behaviour
Stylelint autofix produces code with no indentation.
This
.ab {
box-shadow: 0 0 0 1px #5b9dd9,
0 0 2px 1px red;
}
after stylelint test/*.scss --fix is transformed into this
.ab {
box-shadow:
0 0 0 1px #5b9dd9,
0 0 2px 1px red;
}
Reproduce Scenario
Steps to Reproduce
-
Add
--fixoption tolintscript inpackage.json->stylelint test/*.scss --fix -
Place this
cssinsidetest/index.scss
.ab {
box-shadow: 0 0 0 1px #5b9dd9,
0 0 2px 1px red;
}
- Run lint
npm run lint
Solution
Remove "indentation": null rule setting inside index.js
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working