Skip to content

Commit

Permalink
chore: update stylelint to use a11y plugin (#2677)
Browse files Browse the repository at this point in the history
* chore: update stylelint to use a11y plugin

* fix: issues with (prefers-reduced-motion: reduce)
  • Loading branch information
nmerget authored Jul 16, 2024
1 parent 6270669 commit 9c46db0
Show file tree
Hide file tree
Showing 71 changed files with 4,900 additions and 4,713 deletions.
38 changes: 22 additions & 16 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,31 @@
{
"extends": [
"stylelint-config-sass-guidelines",
"stylelint-config-prettier"
"stylelint-config-standard",
"stylelint-config-sass-guidelines"
],
"plugins": ["stylelint-use-logical"],
"plugins": ["stylelint-use-logical", "@double-great/stylelint-a11y"],
"rules": {
"a11y/media-prefers-reduced-motion": true,
"a11y/no-outline-none": true,
"a11y/selector-pseudo-class-focus": true,
"csstools/use-logical": ["always", { "except": ["float"] }],
"order/properties-alphabetical-order": null,
"scss/operator-no-newline-after": null,
"declaration-empty-line-before": null,
"selector-no-qualifying-type": null,
"selector-class-pattern": null,
"scss/dollar-variable-pattern": null,
"scss/selector-no-redundant-nesting-selector": null,
"max-nesting-depth": null,
"selector-type-no-unknown": [true, { "ignoreTypes": ["/^db/"] }],
"no-descending-specificity": null,
"selector-max-compound-selectors": null,
"scss/at-extend-no-missing-placeholder": null,
"declaration-property-value-disallowed-list": null,
"scss/percent-placeholder-pattern": null,
"scss/at-mixin-pattern": null,
"scss/at-import-partial-extension": null,
"selector-max-id": null
"selector-no-qualifying-type": [
true,
{
"ignore": ["attribute"]
}
],
"number-max-precision": null,
"annotation-no-unknown": [
true,
{
"ignoreAnnotations": ["default", "global"]
}
],
"declaration-property-value-no-unknown": true
}
}
Loading

0 comments on commit 9c46db0

Please sign in to comment.