Skip to content

Commit

Permalink
build: Upgrade stylelint to version 16 and fix issues
Browse files Browse the repository at this point in the history
Migrate upgrade stylelint from version 10 to 16 and fix all the
stylelint and prettier issues in scss files.

The following deprecated stylistic rules are no longer supported in
stylelint, and the checks are taken over by prettier:

- string-quotes
- max-empty-lines
- max-line-length
  • Loading branch information
rhopman authored and adamsaghy committed Nov 28, 2024
1 parent 756ce9e commit 31f1890
Show file tree
Hide file tree
Showing 345 changed files with 2,336 additions and 4,811 deletions.
9 changes: 9 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/dist
/node_modules
**/.git
*.html
*.js
*.json
*.md
*.ts
*.yml
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"singleQuote": true,
"trailingComma": "none"
}
15 changes: 6 additions & 9 deletions .stylelintrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,21 @@
"extends": ["stylelint-config-standard", "stylelint-config-recommended-scss"],
"rules": {
"font-family-name-quotes": "always-where-recommended",
"font-family-no-missing-generic-family-keyword": [true, { "ignoreFontFamilies": ["FontAwesome"] }],
"function-url-quotes": [
"always",
{
"except": ["empty"]
}
],
"selector-attribute-quotes": "always",
"string-quotes": "double",
"max-nesting-depth": 5,
"selector-max-compound-selectors": 5,
"selector-max-specificity": "1,3,2",
"declaration-no-important": true,
"declaration-no-important": null,
"at-rule-no-vendor-prefix": true,
"at-rule-no-unknown": null,
"scss/at-rule-no-unknown": [true, { "ignoreAtRules": ["tailwind"] }],
"media-feature-name-no-vendor-prefix": true,
"property-no-vendor-prefix": true,
"selector-no-vendor-prefix": true,
Expand All @@ -33,10 +35,7 @@
"selector-type-no-unknown": [
true,
{
"ignoreTypes": [
"mat-spinner",
"mat-radio-button"
]
"ignoreTypes": ["/^mat/", "/^mifosx/", "fa-icon", "ng-template"]
}
],
"selector-pseudo-element-no-unknown": [
Expand All @@ -45,8 +44,6 @@
"ignorePseudoElements": ["ng-deep"]
}
],
"unit-whitelist": ["px", "%", "em", "rem", "vw", "vh", "deg", "s"],
"max-empty-lines": 2,
"max-line-length": 120
"unit-allowed-list": ["px", "%", "em", "rem", "vw", "vh", "deg", "s", "ms"]
}
}
Loading

0 comments on commit 31f1890

Please sign in to comment.