-
Notifications
You must be signed in to change notification settings - Fork 0
/
.stylelintrc.yml
58 lines (56 loc) · 1.79 KB
/
.stylelintrc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
defaultSeverity: warning
reportDescriptionlessDisables: true
reportInvalidScopeDisables: true
reportNeedlessDisables: true
extends:
- stylelint-config-standard
- stylelint-config-idiomatic-order
# - stylelint-a11y/recommended # enable when support for stylelint 14 is merged
- stylelint-config-prettier
plugins:
- stylelint-declaration-strict-value
overrides:
- customSyntax: '@stylelint/postcss-css-in-js'
files:
- src/**/*.tsx
- customSyntax: postcss-scss
extends:
- stylelint-config-standard-scss
files:
- src/**/*.scss
rules:
at-rule-no-unknown: null
scss/at-rule-no-unknown:
- true
- ignoreAtRules:
['tailwind', 'apply', 'responsive', 'variants', 'screen']
rules:
# at-rule-empty-line-before: 'always'
at-rule-no-unknown:
- true
- ignoreAtRules: ['tailwind']
at-rule-no-vendor-prefix: true
font-family-name-quotes: 'always-where-recommended'
font-weight-notation: 'named-where-possible'
function-url-quotes: 'always'
media-feature-name-no-vendor-prefix: true
no-descending-specificity: null
property-no-vendor-prefix: true
scale-unlimited/declaration-strict-value:
- ['/color$/', '/font$/', '/background$/']
- disableFix: true
# selector-attribute-quotes: 'always'
selector-no-vendor-prefix: true
string-quotes: 'single'
# unit-allowed-list: ['em', 'rem', 's']
value-no-vendor-prefix: true
# enable when support for stylelint 14 is merged
# a11y/content-property-no-static-value: true
# a11y/font-size-is-readable: true
# a11y/line-height-is-vertical-rhythmed: true
# a11y/media-prefers-color-scheme: true
# a11y/no-display-none: true
# a11y/no-obsolete-attribute: true
# a11y/no-obsolete-element: true
# a11y/no-spread-text: true
# a11y/no-text-align-justify: true