Skip to content

Commit

Permalink
Add stylelint rules back to config
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Morris committed Feb 4, 2024
1 parent 746e4aa commit 7fe5171
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 17 deletions.
11 changes: 10 additions & 1 deletion .stylelintrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"extends": [
"stylelint-config-standard"
],
"plugins": [
"@double-great/stylelint-a11y"
],
"rules": {
"declaration-property-value-no-unknown": true,
"import-notation": "string",
Expand All @@ -17,6 +20,12 @@
"vw",
"deg",
"fr"
]
],
"a11y/selector-pseudo-class-focus": true,
"a11y/font-size-is-readable": [true, { "severity": "warning" }],
"a11y/no-spread-text": [true, { "severity": "warning" }],
"a11y/no-obsolete-attribute": [true, { "severity": "warning" }],
"a11y/no-obsolete-element": [true, { "severity": "warning" }],
"a11y/no-text-align-justify": [true, { "severity": "error" }]
}
}
28 changes: 14 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
"test": "npm run prettier && npm run stylelint"
},
"devDependencies": {
"@double-great/stylelint-a11y": "3.0.0",
"@double-great/stylelint-a11y": "3.0.1",
"autoprefixer": "10.4.17",
"cssnano": "6.0.3",
"postcss": "8.4.33",
"postcss-cli": "11.0.0",
"prettier": "3.2.4",
"prettier": "3.2.5",
"stylelint": "16.2.1",
"stylelint-config-standard": "36.0.0"
}
Expand Down

0 comments on commit 7fe5171

Please sign in to comment.