generated from rogerio-romao/js-react-frontend-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.stylelintrc.json
145 lines (145 loc) · 5.63 KB
/
.stylelintrc.json
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
{
"reportDescriptionlessDisables": true,
"reportInvalidScopeDisables": true,
"reportNeedlessDisables": true,
"plugins": [
"@isnotdefined/stylelint-plugin",
"stylelint-a11y",
"stylelint-css-modules",
"stylelint-css-modules-no-global-scoped-selector",
"stylelint-declaration-block-no-ignored-properties",
"stylelint-group-selectors",
"stylelint-high-performance-animation",
"stylelint-no-unused-selectors",
"stylelint-plugin-defensive-css",
"stylelint-plugin-logical-css",
"stylelint-rem-over-px",
"stylelint-selector-tag-no-without-class",
"stylelint-use-nesting",
"stylelint-value-no-exposed-custom-properties"
],
"rules": {
"declaration-block-no-duplicate-custom-properties": true,
"declaration-block-no-duplicate-properties": [
true,
{
"ignore": [
"consecutive-duplicates-with-different-syntaxes",
"consecutive-duplicates-with-same-prefixless-values"
]
}
],
"font-family-no-duplicate-names": true,
"keyframe-block-no-duplicate-selectors": true,
"no-duplicate-at-import-rules": true,
"no-duplicate-selectors": true,
"block-no-empty": true,
"comment-no-empty": true,
"no-empty-source": true,
"color-no-invalid-hex": true,
"function-calc-no-unspaced-operator": true,
"keyframe-declaration-no-important": true,
"media-query-no-invalid": true,
"named-grid-areas-no-invalid": true,
"no-invalid-double-slash-comments": true,
"no-invalid-position-at-import-rule": true,
"string-no-newline": true,
"no-irregular-whitespace": true,
"custom-property-no-missing-var-function": true,
"font-family-no-missing-generic-family-keyword": true,
"function-linear-gradient-no-nonstandard-direction": true,
"declaration-block-no-shorthand-property-overrides": true,
"selector-anb-no-unmatchable": true,
"annotation-no-unknown": true,
"at-rule-no-unknown": true,
"declaration-property-value-no-unknown": true,
"function-no-unknown": true,
"media-feature-name-no-unknown": true,
"media-feature-name-value-no-unknown": true,
"no-unknown-animations": true,
"no-unknown-custom-properties": true,
"property-no-unknown": true,
"selector-pseudo-class-no-unknown": true,
"selector-pseudo-element-no-unknown": true,
"selector-type-no-unknown": true,
"unit-no-unknown": true,
"at-rule-no-vendor-prefix": true,
"declaration-no-important": true,
"length-zero-no-unit": true,
"property-no-vendor-prefix": null,
"value-no-vendor-prefix": true,
"function-name-case": "lower",
"selector-type-case": "lower",
"value-keyword-case": "lower",
"at-rule-empty-line-before": [
"always",
{
"except": [
"after-same-name",
"blockless-after-same-name-blockless",
"first-nested"
],
"ignore": ["after-comment"]
}
],
"rule-empty-line-before": [
"always",
{
"except": ["first-nested"],
"ignore": ["after-comment"]
}
],
"declaration-block-single-line-max-declarations": 1,
"number-max-precision": 5,
"alpha-value-notation": "number",
"color-function-notation": [
"modern",
{ "ignore": ["with-var-inside"] }
],
"color-hex-length": "short",
"font-weight-notation": "numeric",
"keyframe-selector-notation": "percentage-unless-within-keyword-only-block",
"media-feature-range-notation": "context",
"selector-pseudo-element-colon-notation": "double",
"font-family-name-quotes": "always-where-required",
"selector-attribute-quotes": "always",
"declaration-block-no-redundant-longhand-properties": true,
"shorthand-property-no-redundant-values": true,
"comment-whitespace-inside": "always",
"@isnotdefined/no-obsolete": true,
"a11y/content-property-no-static-value": true,
"a11y/media-prefers-reduced-motion": true,
"a11y/no-display-none": true,
"a11y/no-obsolete-attribute": true,
"a11y/no-obsolete-element": true,
"a11y/no-outline-none": true,
"a11y/selector-pseudo-class-focus": true,
"css-modules/no-global-scoped-selector": [
true,
{ "fileExtensions": [".module.css", ".module.scss"] }
],
"css-modules/css-variables": true,
"plugin/declaration-block-no-ignored-properties": true,
"plugin/stylelint-group-selectors": true,
"plugin/no-low-performance-animation-properties": true,
"plugin/no-unused-selectors": true,
"plugin/use-defensive-css": [
true,
{
"background-repeat": true,
"flex-wrapping": true,
"scroll-chaining": true,
"vendor-prefix-grouping": true
}
],
"plugin/use-logical-properties-and-values": [
true,
{ "severity": "warning" }
],
"plugin/use-logical-units": [true, { "severity": "warning" }],
"rem-over-px/rem-over-px": true,
"plugin/selector-tag-no-without-class": ["div", "span"],
"csstools/use-nesting": "always",
"plugin/value-no-exposed-custom-properties": true
}
}