@aarongoldenthal/stylelint-config-standard 12.0.0 → 13.0.0
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/LICENSE +1 -1
- package/README.md +0 -11
- package/index.js +3 -69
- package/package.json +12 -15
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2021 -
|
|
3
|
+
Copyright (c) 2021 - 2023 Aaron Goldenthal
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
|
@@ -9,14 +9,3 @@ To setup `.stylelintrc.json` with this configuration alone:
|
|
|
9
9
|
"extends": ["@aarongoldenthal/stylelint-config-standard"]
|
|
10
10
|
}
|
|
11
11
|
```
|
|
12
|
-
|
|
13
|
-
If using prettier, the `stylelint-config-prettier` config (included with this package) should be added as the last `extends` in you project's stylelint config to ensure conflicting rules are disabled.
|
|
14
|
-
|
|
15
|
-
```json
|
|
16
|
-
{
|
|
17
|
-
"extends": [
|
|
18
|
-
"@aarongoldenthal/stylelint-config-standard",
|
|
19
|
-
"stylelint-config-prettier"
|
|
20
|
-
]
|
|
21
|
-
}
|
|
22
|
-
```
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* eslint-disable
|
|
1
|
+
/* eslint-disable unicorn/no-null */
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
module.exports = {
|
|
@@ -11,7 +11,7 @@ module.exports = {
|
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
],
|
|
14
|
-
plugins: ['stylelint-
|
|
14
|
+
plugins: ['stylelint-order'],
|
|
15
15
|
reportDescriptionlessDisables: true,
|
|
16
16
|
reportInvalidScopeDisables: true,
|
|
17
17
|
reportNeedlessDisables: true,
|
|
@@ -41,25 +41,12 @@ module.exports = {
|
|
|
41
41
|
ignore: ['after-comment']
|
|
42
42
|
}
|
|
43
43
|
],
|
|
44
|
-
'at-rule-name-case': 'lower',
|
|
45
|
-
// eslint-disable-next-line sonarjs/no-duplicate-string -- enumeration
|
|
46
|
-
'at-rule-name-space-after': 'always-single-line',
|
|
47
44
|
'at-rule-no-unknown': true,
|
|
48
45
|
'at-rule-no-vendor-prefix': true,
|
|
49
46
|
'at-rule-property-required-list': null,
|
|
50
|
-
'at-rule-semicolon-newline-after': 'always',
|
|
51
|
-
'block-closing-brace-empty-line-before': 'never',
|
|
52
|
-
'block-closing-brace-newline-after': 'always',
|
|
53
|
-
// eslint-disable-next-line sonarjs/no-duplicate-string -- enumeration
|
|
54
|
-
'block-closing-brace-newline-before': 'always-multi-line',
|
|
55
|
-
'block-closing-brace-space-before': 'always-single-line',
|
|
56
47
|
'block-no-empty': true,
|
|
57
|
-
'block-opening-brace-newline-after': 'always-multi-line',
|
|
58
|
-
'block-opening-brace-space-after': 'always-single-line',
|
|
59
|
-
'block-opening-brace-space-before': 'always',
|
|
60
48
|
'color-function-notation': 'modern',
|
|
61
49
|
'color-hex-alpha': null,
|
|
62
|
-
'color-hex-case': 'lower',
|
|
63
50
|
'color-hex-length': 'long', // Changed
|
|
64
51
|
'color-named': 'never', // Added
|
|
65
52
|
'color-no-hex': null,
|
|
@@ -98,8 +85,6 @@ module.exports = {
|
|
|
98
85
|
`Expected custom property name "${name}" to be kebab-case`
|
|
99
86
|
}
|
|
100
87
|
],
|
|
101
|
-
'declaration-bang-space-after': 'never',
|
|
102
|
-
'declaration-bang-space-before': 'always',
|
|
103
88
|
'declaration-block-no-duplicate-custom-properties': true,
|
|
104
89
|
'declaration-block-no-duplicate-properties': [
|
|
105
90
|
true,
|
|
@@ -109,14 +94,7 @@ module.exports = {
|
|
|
109
94
|
],
|
|
110
95
|
'declaration-block-no-redundant-longhand-properties': true,
|
|
111
96
|
'declaration-block-no-shorthand-property-overrides': true,
|
|
112
|
-
'declaration-block-semicolon-newline-after': 'always-multi-line',
|
|
113
|
-
'declaration-block-semicolon-space-after': 'always-single-line',
|
|
114
|
-
'declaration-block-semicolon-space-before': 'never',
|
|
115
97
|
'declaration-block-single-line-max-declarations': 1,
|
|
116
|
-
'declaration-block-trailing-semicolon': 'always',
|
|
117
|
-
'declaration-colon-newline-after': 'always-multi-line',
|
|
118
|
-
'declaration-colon-space-after': 'always-single-line',
|
|
119
|
-
'declaration-colon-space-before': 'never',
|
|
120
98
|
'declaration-empty-line-before': [
|
|
121
99
|
'always',
|
|
122
100
|
{
|
|
@@ -126,6 +104,7 @@ module.exports = {
|
|
|
126
104
|
],
|
|
127
105
|
'declaration-no-important': true, // Added
|
|
128
106
|
'declaration-property-max-values': null,
|
|
107
|
+
'declaration-property-value-no-unknown': true,
|
|
129
108
|
'declaration-property-unit-allowed-list': null,
|
|
130
109
|
'declaration-property-unit-disallowed-list': null,
|
|
131
110
|
'declaration-property-value-allowed-list': null,
|
|
@@ -136,24 +115,16 @@ module.exports = {
|
|
|
136
115
|
'font-weight-notation': 'named-where-possible', // Added
|
|
137
116
|
'function-allowed-list': null,
|
|
138
117
|
'function-calc-no-unspaced-operator': true,
|
|
139
|
-
'function-comma-newline-after': 'always-multi-line',
|
|
140
|
-
'function-comma-space-after': 'always-single-line',
|
|
141
|
-
'function-comma-space-before': 'never',
|
|
142
118
|
'function-disallowed-list': null,
|
|
143
119
|
'function-linear-gradient-no-nonstandard-direction': true,
|
|
144
|
-
'function-max-empty-lines': 0,
|
|
145
120
|
'function-name-case': 'lower',
|
|
146
121
|
'function-no-unknown': true,
|
|
147
|
-
'function-parentheses-newline-inside': 'always-multi-line',
|
|
148
|
-
'function-parentheses-space-inside': 'never-single-line',
|
|
149
122
|
'function-url-no-scheme-relative': null,
|
|
150
123
|
'function-url-quotes': 'always',
|
|
151
124
|
'function-url-scheme-allowed-list': null,
|
|
152
125
|
'function-url-scheme-disallowed-list': null,
|
|
153
|
-
'function-whitespace-after': 'always',
|
|
154
126
|
'hue-degree-notation': 'angle',
|
|
155
127
|
'import-notation': 'url',
|
|
156
|
-
indentation: 2,
|
|
157
128
|
'keyframe-block-no-duplicate-selectors': true,
|
|
158
129
|
'keyframe-declaration-no-important': true,
|
|
159
130
|
'keyframe-selector-notation': 'percentage', // Changed
|
|
@@ -165,42 +136,24 @@ module.exports = {
|
|
|
165
136
|
}
|
|
166
137
|
],
|
|
167
138
|
'length-zero-no-unit': true,
|
|
168
|
-
'max-empty-lines': 1,
|
|
169
|
-
'max-line-length': 120,
|
|
170
139
|
'max-nesting-depth': null,
|
|
171
|
-
'media-feature-colon-space-after': 'always',
|
|
172
|
-
'media-feature-colon-space-before': 'never',
|
|
173
140
|
'media-feature-name-allowed-list': null,
|
|
174
|
-
'media-feature-name-case': 'lower',
|
|
175
141
|
'media-feature-name-disallowed-list': null,
|
|
176
142
|
'media-feature-name-no-unknown': true,
|
|
177
143
|
'media-feature-name-no-vendor-prefix': true,
|
|
178
144
|
'media-feature-name-value-allowed-list': null,
|
|
179
|
-
'media-feature-parentheses-space-inside': 'never',
|
|
180
145
|
'media-feature-range-notation': 'context',
|
|
181
|
-
'media-feature-range-operator-space-after': 'always',
|
|
182
|
-
'media-feature-range-operator-space-before': 'always',
|
|
183
|
-
'media-query-list-comma-newline-after': 'always-multi-line',
|
|
184
|
-
'media-query-list-comma-space-after': 'always-single-line',
|
|
185
|
-
'media-query-list-comma-space-before': 'never',
|
|
186
146
|
'named-grid-areas-no-invalid': true,
|
|
187
147
|
'no-descending-specificity': true,
|
|
188
148
|
'no-duplicate-at-import-rules': true,
|
|
189
149
|
'no-duplicate-selectors': true,
|
|
190
|
-
'no-empty-first-line': true,
|
|
191
150
|
'no-empty-source': true,
|
|
192
|
-
'no-eol-whitespace': true,
|
|
193
|
-
'no-extra-semicolons': true,
|
|
194
151
|
'no-invalid-double-slash-comments': true,
|
|
195
152
|
'no-invalid-position-at-import-rule': true,
|
|
196
153
|
'no-irregular-whitespace': true,
|
|
197
|
-
'no-missing-end-of-source-newline': true,
|
|
198
154
|
'no-unknown-animations': true, // Added
|
|
199
|
-
'number-leading-zero': 'always',
|
|
200
155
|
'number-max-precision': 4,
|
|
201
|
-
'number-no-trailing-zeros': true,
|
|
202
156
|
'property-allowed-list': null,
|
|
203
|
-
'property-case': 'lower',
|
|
204
157
|
'property-disallowed-list': null,
|
|
205
158
|
'property-no-unknown': true,
|
|
206
159
|
'property-no-vendor-prefix': true,
|
|
@@ -212,12 +165,9 @@ module.exports = {
|
|
|
212
165
|
}
|
|
213
166
|
],
|
|
214
167
|
'rule-selector-property-disallowed-list': null,
|
|
215
|
-
'selector-attribute-brackets-space-inside': 'never',
|
|
216
168
|
'selector-attribute-name-disallowed-list': null,
|
|
217
169
|
'selector-attribute-operator-allowed-list': null,
|
|
218
170
|
'selector-attribute-operator-disallowed-list': null,
|
|
219
|
-
'selector-attribute-operator-space-after': 'never',
|
|
220
|
-
'selector-attribute-operator-space-before': 'never',
|
|
221
171
|
'selector-attribute-quotes': 'always',
|
|
222
172
|
'selector-class-pattern': [
|
|
223
173
|
'^([a-z][a-z0-9]*)(-[a-z0-9]+)*$',
|
|
@@ -228,10 +178,7 @@ module.exports = {
|
|
|
228
178
|
],
|
|
229
179
|
'selector-combinator-allowed-list': null,
|
|
230
180
|
'selector-combinator-disallowed-list': null,
|
|
231
|
-
'selector-combinator-space-after': 'always',
|
|
232
|
-
'selector-combinator-space-before': 'always',
|
|
233
181
|
'selector-disallowed-list': null,
|
|
234
|
-
'selector-descendant-combinator-no-non-space': true,
|
|
235
182
|
'selector-id-pattern': [
|
|
236
183
|
'^([a-z][a-z0-9]*)(-[a-z0-9]+)*$',
|
|
237
184
|
{
|
|
@@ -239,13 +186,10 @@ module.exports = {
|
|
|
239
186
|
`Expected id selector "${selector}" to be kebab-case`
|
|
240
187
|
}
|
|
241
188
|
],
|
|
242
|
-
'selector-list-comma-newline-after': 'always',
|
|
243
|
-
'selector-list-comma-space-before': 'never',
|
|
244
189
|
'selector-max-attribute': null,
|
|
245
190
|
'selector-max-class': null,
|
|
246
191
|
'selector-max-combinators': null,
|
|
247
192
|
'selector-max-compound-selectors': null,
|
|
248
|
-
'selector-max-empty-lines': 0,
|
|
249
193
|
'selector-max-id': null,
|
|
250
194
|
'selector-max-pseudo-class': null,
|
|
251
195
|
'selector-max-specificity': null,
|
|
@@ -256,12 +200,9 @@ module.exports = {
|
|
|
256
200
|
'selector-no-vendor-prefix': true,
|
|
257
201
|
'selector-not-notation': 'complex',
|
|
258
202
|
'selector-pseudo-class-allowed-list': null,
|
|
259
|
-
'selector-pseudo-class-case': 'lower',
|
|
260
203
|
'selector-pseudo-class-disallowed-list': null,
|
|
261
204
|
'selector-pseudo-class-no-unknown': true,
|
|
262
|
-
'selector-pseudo-class-parentheses-space-inside': 'never',
|
|
263
205
|
'selector-pseudo-element-allowed-list': null,
|
|
264
|
-
'selector-pseudo-element-case': 'lower',
|
|
265
206
|
'selector-pseudo-element-colon-notation': 'double',
|
|
266
207
|
'selector-pseudo-element-disallowed-list': null,
|
|
267
208
|
'selector-pseudo-element-no-unknown': true,
|
|
@@ -274,7 +215,6 @@ module.exports = {
|
|
|
274
215
|
],
|
|
275
216
|
'shorthand-property-no-redundant-values': true,
|
|
276
217
|
'string-no-newline': true,
|
|
277
|
-
'string-quotes': 'double',
|
|
278
218
|
'time-min-milliseconds': null,
|
|
279
219
|
'unit-allowed-list': [
|
|
280
220
|
// Changed
|
|
@@ -290,14 +230,9 @@ module.exports = {
|
|
|
290
230
|
'vh',
|
|
291
231
|
`vw`
|
|
292
232
|
],
|
|
293
|
-
'unit-case': 'lower',
|
|
294
233
|
'unit-disallowed-list': null,
|
|
295
234
|
'unit-no-unknown': true,
|
|
296
235
|
'value-keyword-case': 'lower',
|
|
297
|
-
'value-list-comma-newline-after': 'always-multi-line',
|
|
298
|
-
'value-list-comma-space-after': 'always-single-line',
|
|
299
|
-
'value-list-comma-space-before': 'never',
|
|
300
|
-
'value-list-max-empty-lines': 0,
|
|
301
236
|
'value-no-vendor-prefix': [
|
|
302
237
|
true,
|
|
303
238
|
{
|
|
@@ -305,7 +240,6 @@ module.exports = {
|
|
|
305
240
|
ignoreValues: ['box']
|
|
306
241
|
}
|
|
307
242
|
],
|
|
308
|
-
'csstree/validator': true,
|
|
309
243
|
'order/properties-alphabetical-order': true
|
|
310
244
|
}
|
|
311
245
|
};
|
package/package.json
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aarongoldenthal/stylelint-config-standard",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "13.0.0",
|
|
4
4
|
"description": "Standard StyleLint configuration settings",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"hooks-pre-commit": "npm run
|
|
7
|
+
"hooks-pre-commit": "npm run lint && npm run prettier-check",
|
|
8
8
|
"hooks-pre-push": "npm audit --audit-level=high && npm test",
|
|
9
9
|
"lint": "npm run lint-js && npm run lint-md",
|
|
10
10
|
"lint-js": "eslint \"**/*.js\"",
|
|
11
11
|
"lint-md": "markdownlint **/*.md --ignore node_modules",
|
|
12
12
|
"prettier-check": "prettier --check .",
|
|
13
13
|
"prettier-fix": "prettier --write .",
|
|
14
|
-
"stylelint-check": "stylelint-config-prettier-check",
|
|
15
14
|
"test": "jest --ci --config jest.config.json"
|
|
16
15
|
},
|
|
17
16
|
"repository": {
|
|
@@ -34,21 +33,19 @@
|
|
|
34
33
|
},
|
|
35
34
|
"homepage": "https://gitlab.com/gitlab-ci-utils/node/stylelint-config-standard",
|
|
36
35
|
"dependencies": {
|
|
37
|
-
"postcss-html": "
|
|
38
|
-
"stylelint-
|
|
39
|
-
"stylelint-csstree-validator": "^2.0.0",
|
|
40
|
-
"stylelint-order": "^5.0.0"
|
|
36
|
+
"postcss-html": "1.5.0",
|
|
37
|
+
"stylelint-order": "6.0.2"
|
|
41
38
|
},
|
|
42
39
|
"devDependencies": {
|
|
43
|
-
"@aarongoldenthal/eslint-config-standard": "
|
|
44
|
-
"eslint": "
|
|
45
|
-
"jest": "
|
|
46
|
-
"jest-junit": "
|
|
47
|
-
"markdownlint-cli": "
|
|
48
|
-
"prettier": "
|
|
49
|
-
"stylelint": "
|
|
40
|
+
"@aarongoldenthal/eslint-config-standard": "20.0.0",
|
|
41
|
+
"eslint": "8.33.0",
|
|
42
|
+
"jest": "29.4.2",
|
|
43
|
+
"jest-junit": "15.0.0",
|
|
44
|
+
"markdownlint-cli": "0.33.0",
|
|
45
|
+
"prettier": "2.8.4",
|
|
46
|
+
"stylelint": "15.1.0"
|
|
50
47
|
},
|
|
51
48
|
"peerDependencies": {
|
|
52
|
-
"stylelint": "^
|
|
49
|
+
"stylelint": "^15.1.0"
|
|
53
50
|
}
|
|
54
51
|
}
|