Skip to content

Commit

Permalink
chore: upgrade stylelint dependency and stylelintrc config
Browse files Browse the repository at this point in the history
BREAKING CHANGE: breaking changes due to upgrading stylelint to major version

Issues: MOL-29290
  • Loading branch information
Txabox committed Apr 22, 2024
1 parent aec3e74 commit 60f8f91
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 374 deletions.
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,18 @@
"test": "echo 'this project has no test'",
"build": "NODE_ENV=production webpack -p"
},
"dependencies": {
"stylelint-config-standard": "^36.0.0"
},
"engines": {
"node": ">=18"
},
"devDependencies": {
"husky": "^7.0.2",
"jsonlint": "^1.6.3",
"semantic-release": "^22.0.12",
"semantic-release": "^22.0.12"
},
"peerDependencies": {
"postcss": "^8.4.38",
"stylelint-config-standard-scss": "^13.1.0",
"stylelint-config-standard": "^36.0.0",
"stylelint": "^16.3.1"
},
"keywords": [
Expand Down
42 changes: 26 additions & 16 deletions stylelintrc.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
{
"extends": "stylelint-config-standard",
"rules": {
"at-rule-no-unknown": [
true,
{
"ignoreAtRules": [
"include",
"extend",
"if",
"else",
"content",
"each",
"return",
"mixin",
"function"
]
"overrides": [
{
"extends": "stylelint-config-standard-scss",
"files": [
"**/*.scss"
],
"rules": {
"scss/at-mixin-pattern": null,
"scss/dollar-variable-pattern": null,
"scss/no-global-function-names": null
}
],
}
],
"rules": {
"color-function-notation": null,
"keyframes-name-pattern": null,
"media-feature-range-notation": null,
"no-descending-specificity": null,
"no-invalid-position-at-import-rule": null,
"property-no-unknown": [
true,
{
Expand All @@ -25,6 +27,8 @@
]
}
],
"selector-class-pattern": null,
"selector-id-pattern": null,
"selector-pseudo-class-no-unknown": [
true,
{
Expand All @@ -33,6 +37,12 @@
"global"
]
}
],
"value-keyword-case": [
"lower",
{
"camelCaseSvgKeywords": true
}
]
}
}
Loading

0 comments on commit 60f8f91

Please sign in to comment.