@alexlit/config-stylelint 51.0.2 → 51.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +10 -19
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -5,16 +5,16 @@ const ADDITIONAL_PLUGINS = {
|
|
|
5
5
|
'declaration-block-no-ignored-properties': true,
|
|
6
6
|
'high-performance-animation': true,
|
|
7
7
|
'no-nested-media': true,
|
|
8
|
-
order: true,
|
|
9
|
-
scss: true,
|
|
8
|
+
'order': true,
|
|
9
|
+
'scss': true,
|
|
10
10
|
'selector-no-empty': true,
|
|
11
11
|
'use-nesting': true,
|
|
12
|
-
vue: true,
|
|
12
|
+
'vue': true,
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
const OPTIONAL_PLUGINS = {
|
|
16
|
-
a11y: false,
|
|
17
|
-
gamut: false,
|
|
16
|
+
'a11y': false,
|
|
17
|
+
'gamut': false,
|
|
18
18
|
'logical-css': false,
|
|
19
19
|
'media-use-custom-media': false,
|
|
20
20
|
'no-browser-hacks': false,
|
|
@@ -23,9 +23,7 @@ const OPTIONAL_PLUGINS = {
|
|
|
23
23
|
'no-unsupported-browser-features': false,
|
|
24
24
|
};
|
|
25
25
|
|
|
26
|
-
const CODESTYLE_PLUGINS = {
|
|
27
|
-
prettier: true,
|
|
28
|
-
};
|
|
26
|
+
const CODESTYLE_PLUGINS = { prettier: true };
|
|
29
27
|
|
|
30
28
|
const PLUGINS = {
|
|
31
29
|
...ADDITIONAL_PLUGINS,
|
|
@@ -99,9 +97,7 @@ const createConfig = (plugins = {}, options = {}) => ({
|
|
|
99
97
|
'color-no-invalid-hex': true,
|
|
100
98
|
'custom-property-empty-line-before': [
|
|
101
99
|
'always',
|
|
102
|
-
{
|
|
103
|
-
except: ['after-comment', 'after-custom-property', 'first-nested'],
|
|
104
|
-
},
|
|
100
|
+
{ except: ['after-comment', 'after-custom-property', 'first-nested'] },
|
|
105
101
|
],
|
|
106
102
|
'custom-property-pattern': '^_?[a-z]+([a-z0-9-]+[a-z0-9]+)?$',
|
|
107
103
|
'declaration-block-no-redundant-longhand-properties': null,
|
|
@@ -121,9 +117,7 @@ const createConfig = (plugins = {}, options = {}) => ({
|
|
|
121
117
|
'keyframes-name-pattern': '^[a-z]+(-[a-z]+)*$',
|
|
122
118
|
'max-nesting-depth': [
|
|
123
119
|
6,
|
|
124
|
-
{
|
|
125
|
-
ignoreAtRules: ['each', 'media', 'supports', 'include'],
|
|
126
|
-
},
|
|
120
|
+
{ ignoreAtRules: ['each', 'media', 'supports', 'include'] },
|
|
127
121
|
],
|
|
128
122
|
'media-feature-name-no-unknown': [
|
|
129
123
|
true,
|
|
@@ -140,7 +134,7 @@ const createConfig = (plugins = {}, options = {}) => ({
|
|
|
140
134
|
ignoreProperties: [
|
|
141
135
|
'align-tracks',
|
|
142
136
|
'animation-timeline',
|
|
143
|
-
'interpolate-size',
|
|
137
|
+
'interpolate-size',
|
|
144
138
|
'text-stroke',
|
|
145
139
|
],
|
|
146
140
|
},
|
|
@@ -148,10 +142,7 @@ const createConfig = (plugins = {}, options = {}) => ({
|
|
|
148
142
|
'property-no-vendor-prefix': true,
|
|
149
143
|
'rule-empty-line-before': [
|
|
150
144
|
'always',
|
|
151
|
-
{
|
|
152
|
-
except: ['first-nested'],
|
|
153
|
-
ignore: [],
|
|
154
|
-
},
|
|
145
|
+
{ except: ['first-nested'], ignore: [] },
|
|
155
146
|
],
|
|
156
147
|
'selector-class-pattern': [
|
|
157
148
|
'^[a-z]([a-z0-9-]+)?(__([a-z0-9]+-?)+)?(--([a-z0-9]+-?)+){0,2}$',
|