Skip to content

Commit

Permalink
Add Stylelint
Browse files Browse the repository at this point in the history
... with rules that order declarations, so that any future changes are
devoid of arbitrary reorganisation, instead focused on meaningful change

Per [this client project commit][1], `stylelint-selector bem-pattern` is
added and `selector-class-pattern` is turned off as by default Stylelint
(or the standard rules) require strictly kebab case class names

[1]: ministryofjustice/hmpps-accredited-programmes-ui@025ed66
  • Loading branch information
yndajas committed Oct 16, 2023
1 parent 831999b commit 81bf644
Show file tree
Hide file tree
Showing 12 changed files with 2,752 additions and 93 deletions.
10 changes: 10 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": ["stylelint-config-standard-scss", "stylelint-config-clean-order"],
"plugins": ["stylelint-selector-bem-pattern"],
"rules": {
"plugin/selector-bem-pattern": {
"preset": "bem"
},
"selector-class-pattern": null
}
}
Loading

0 comments on commit 81bf644

Please sign in to comment.