-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Investigate CSS linting with sass-lint #281
Comments
Ok I investigated this. Setup
ResultsFor the most part, /**
--- space-before-brace ---
*/
/* Should fail but doesn't: Whitespace required before { */
.test{
color: aliceblue;
}
/**
--- indentation ---
*/
/* Should fail but doesn't - Mixed spaces and tabs */
.test {
color: aliceblue;
background: red;
}
/* Should fail but doesn't - Expected indentation of 1 tab but found 0 */
.test {
color: aliceblue;
background: red;
}
/* Should fail but doesn't - Expected indentation of 1 tab but found 0 */
.test {
color: aliceblue;
background: red;
}
/**
--- empty-line-between-blocks ---
*/
/* Should fail but doesn't: Space expected between blocks */
.test {
color: aliceblue;
}
.test {
color: aliceblue;
} |
sass-lint is no longer been maintained/supported as of 2017. Should we be recommending stylelint and therefore need to update https://github.com/springernature/frontend-playbook/blob/main/css/house-style.md#linting referenceshttps://dev.to/stories_of_ren/switching-from-sass-lint-to-stylelint-5f8c |
Further to removing the CSS linting rules from the playbook documentation, there is some investigation to be done about whether we can have 1 linter instead of
stylelint
andsass-lint
, and what the repercussions of that change would be.The text was updated successfully, but these errors were encountered: