@aarongoldenthal/stylelint-config-standard 12.0.1 → 13.0.1

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.
Files changed (4) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +0 -11
  3. package/index.js +4 -73
  4. package/package.json +12 -15
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2021 - 2022 Aaron Goldenthal
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,17 +1,14 @@
1
- /* eslint-disable max-lines, unicorn/no-null */
1
+ /* eslint-disable unicorn/no-null */
2
2
  'use strict';
3
3
 
4
4
  module.exports = {
5
5
  overrides: [
6
6
  {
7
7
  files: ['**/*.html', '**/*.handlebars'],
8
- customSyntax: 'postcss-html',
9
- rules: {
10
- indentation: 'tab'
11
- }
8
+ customSyntax: 'postcss-html'
12
9
  }
13
10
  ],
14
- plugins: ['stylelint-csstree-validator', 'stylelint-order'],
11
+ plugins: ['stylelint-order'],
15
12
  reportDescriptionlessDisables: true,
16
13
  reportInvalidScopeDisables: true,
17
14
  reportNeedlessDisables: true,
@@ -41,25 +38,12 @@ module.exports = {
41
38
  ignore: ['after-comment']
42
39
  }
43
40
  ],
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
41
  'at-rule-no-unknown': true,
48
42
  'at-rule-no-vendor-prefix': true,
49
43
  '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
44
  '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
45
  'color-function-notation': 'modern',
61
46
  'color-hex-alpha': null,
62
- 'color-hex-case': 'lower',
63
47
  'color-hex-length': 'long', // Changed
64
48
  'color-named': 'never', // Added
65
49
  'color-no-hex': null,
@@ -98,8 +82,6 @@ module.exports = {
98
82
  `Expected custom property name "${name}" to be kebab-case`
99
83
  }
100
84
  ],
101
- 'declaration-bang-space-after': 'never',
102
- 'declaration-bang-space-before': 'always',
103
85
  'declaration-block-no-duplicate-custom-properties': true,
104
86
  'declaration-block-no-duplicate-properties': [
105
87
  true,
@@ -109,14 +91,7 @@ module.exports = {
109
91
  ],
110
92
  'declaration-block-no-redundant-longhand-properties': true,
111
93
  '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
94
  '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
95
  'declaration-empty-line-before': [
121
96
  'always',
122
97
  {
@@ -126,6 +101,7 @@ module.exports = {
126
101
  ],
127
102
  'declaration-no-important': true, // Added
128
103
  'declaration-property-max-values': null,
104
+ 'declaration-property-value-no-unknown': true,
129
105
  'declaration-property-unit-allowed-list': null,
130
106
  'declaration-property-unit-disallowed-list': null,
131
107
  'declaration-property-value-allowed-list': null,
@@ -136,24 +112,16 @@ module.exports = {
136
112
  'font-weight-notation': 'named-where-possible', // Added
137
113
  'function-allowed-list': null,
138
114
  '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
115
  'function-disallowed-list': null,
143
116
  'function-linear-gradient-no-nonstandard-direction': true,
144
- 'function-max-empty-lines': 0,
145
117
  'function-name-case': 'lower',
146
118
  'function-no-unknown': true,
147
- 'function-parentheses-newline-inside': 'always-multi-line',
148
- 'function-parentheses-space-inside': 'never-single-line',
149
119
  'function-url-no-scheme-relative': null,
150
120
  'function-url-quotes': 'always',
151
121
  'function-url-scheme-allowed-list': null,
152
122
  'function-url-scheme-disallowed-list': null,
153
- 'function-whitespace-after': 'always',
154
123
  'hue-degree-notation': 'angle',
155
124
  'import-notation': 'url',
156
- indentation: 2,
157
125
  'keyframe-block-no-duplicate-selectors': true,
158
126
  'keyframe-declaration-no-important': true,
159
127
  'keyframe-selector-notation': 'percentage', // Changed
@@ -165,42 +133,24 @@ module.exports = {
165
133
  }
166
134
  ],
167
135
  'length-zero-no-unit': true,
168
- 'max-empty-lines': 1,
169
- 'max-line-length': 120,
170
136
  'max-nesting-depth': null,
171
- 'media-feature-colon-space-after': 'always',
172
- 'media-feature-colon-space-before': 'never',
173
137
  'media-feature-name-allowed-list': null,
174
- 'media-feature-name-case': 'lower',
175
138
  'media-feature-name-disallowed-list': null,
176
139
  'media-feature-name-no-unknown': true,
177
140
  'media-feature-name-no-vendor-prefix': true,
178
141
  'media-feature-name-value-allowed-list': null,
179
- 'media-feature-parentheses-space-inside': 'never',
180
142
  '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
143
  'named-grid-areas-no-invalid': true,
187
144
  'no-descending-specificity': true,
188
145
  'no-duplicate-at-import-rules': true,
189
146
  'no-duplicate-selectors': true,
190
- 'no-empty-first-line': true,
191
147
  'no-empty-source': true,
192
- 'no-eol-whitespace': true,
193
- 'no-extra-semicolons': true,
194
148
  'no-invalid-double-slash-comments': true,
195
149
  'no-invalid-position-at-import-rule': true,
196
150
  'no-irregular-whitespace': true,
197
- 'no-missing-end-of-source-newline': true,
198
151
  'no-unknown-animations': true, // Added
199
- 'number-leading-zero': 'always',
200
152
  'number-max-precision': 4,
201
- 'number-no-trailing-zeros': true,
202
153
  'property-allowed-list': null,
203
- 'property-case': 'lower',
204
154
  'property-disallowed-list': null,
205
155
  'property-no-unknown': true,
206
156
  'property-no-vendor-prefix': true,
@@ -212,12 +162,9 @@ module.exports = {
212
162
  }
213
163
  ],
214
164
  'rule-selector-property-disallowed-list': null,
215
- 'selector-attribute-brackets-space-inside': 'never',
216
165
  'selector-attribute-name-disallowed-list': null,
217
166
  'selector-attribute-operator-allowed-list': null,
218
167
  'selector-attribute-operator-disallowed-list': null,
219
- 'selector-attribute-operator-space-after': 'never',
220
- 'selector-attribute-operator-space-before': 'never',
221
168
  'selector-attribute-quotes': 'always',
222
169
  'selector-class-pattern': [
223
170
  '^([a-z][a-z0-9]*)(-[a-z0-9]+)*$',
@@ -228,10 +175,7 @@ module.exports = {
228
175
  ],
229
176
  'selector-combinator-allowed-list': null,
230
177
  'selector-combinator-disallowed-list': null,
231
- 'selector-combinator-space-after': 'always',
232
- 'selector-combinator-space-before': 'always',
233
178
  'selector-disallowed-list': null,
234
- 'selector-descendant-combinator-no-non-space': true,
235
179
  'selector-id-pattern': [
236
180
  '^([a-z][a-z0-9]*)(-[a-z0-9]+)*$',
237
181
  {
@@ -239,13 +183,10 @@ module.exports = {
239
183
  `Expected id selector "${selector}" to be kebab-case`
240
184
  }
241
185
  ],
242
- 'selector-list-comma-newline-after': 'always',
243
- 'selector-list-comma-space-before': 'never',
244
186
  'selector-max-attribute': null,
245
187
  'selector-max-class': null,
246
188
  'selector-max-combinators': null,
247
189
  'selector-max-compound-selectors': null,
248
- 'selector-max-empty-lines': 0,
249
190
  'selector-max-id': null,
250
191
  'selector-max-pseudo-class': null,
251
192
  'selector-max-specificity': null,
@@ -256,12 +197,9 @@ module.exports = {
256
197
  'selector-no-vendor-prefix': true,
257
198
  'selector-not-notation': 'complex',
258
199
  'selector-pseudo-class-allowed-list': null,
259
- 'selector-pseudo-class-case': 'lower',
260
200
  'selector-pseudo-class-disallowed-list': null,
261
201
  'selector-pseudo-class-no-unknown': true,
262
- 'selector-pseudo-class-parentheses-space-inside': 'never',
263
202
  'selector-pseudo-element-allowed-list': null,
264
- 'selector-pseudo-element-case': 'lower',
265
203
  'selector-pseudo-element-colon-notation': 'double',
266
204
  'selector-pseudo-element-disallowed-list': null,
267
205
  'selector-pseudo-element-no-unknown': true,
@@ -274,7 +212,6 @@ module.exports = {
274
212
  ],
275
213
  'shorthand-property-no-redundant-values': true,
276
214
  'string-no-newline': true,
277
- 'string-quotes': 'double',
278
215
  'time-min-milliseconds': null,
279
216
  'unit-allowed-list': [
280
217
  // Changed
@@ -290,14 +227,9 @@ module.exports = {
290
227
  'vh',
291
228
  `vw`
292
229
  ],
293
- 'unit-case': 'lower',
294
230
  'unit-disallowed-list': null,
295
231
  'unit-no-unknown': true,
296
232
  '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
233
  'value-no-vendor-prefix': [
302
234
  true,
303
235
  {
@@ -305,7 +237,6 @@ module.exports = {
305
237
  ignoreValues: ['box']
306
238
  }
307
239
  ],
308
- 'csstree/validator': true,
309
240
  'order/properties-alphabetical-order': true
310
241
  }
311
242
  };
package/package.json CHANGED
@@ -1,17 +1,16 @@
1
1
  {
2
2
  "name": "@aarongoldenthal/stylelint-config-standard",
3
- "version": "12.0.1",
3
+ "version": "13.0.1",
4
4
  "description": "Standard StyleLint configuration settings",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
- "hooks-pre-commit": "npm run stylelint-check && npm run lint && npm run prettier-check",
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": "^1.5.0",
38
- "stylelint-config-prettier": "^9.0.4",
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": "^18.0.0",
44
- "eslint": "^8.29.0",
45
- "jest": "^29.3.1",
46
- "jest-junit": "^15.0.0",
47
- "markdownlint-cli": "^0.32.2",
48
- "prettier": "^2.8.1",
49
- "stylelint": "^14.16.0"
40
+ "@aarongoldenthal/eslint-config-standard": "20.0.0",
41
+ "eslint": "8.34.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": "^14.16.0"
49
+ "stylelint": "^15.1.0"
53
50
  }
54
51
  }