@aarongoldenthal/stylelint-config-standard 13.0.1 → 15.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/index.js +17 -13
- package/package.json +13 -13
package/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/* eslint-disable unicorn/no-null */
|
|
1
|
+
/* eslint-disable unicorn/no-null -- null required to disable rules */
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
module.exports = {
|
|
5
5
|
overrides: [
|
|
6
6
|
{
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
customSyntax: 'postcss-html',
|
|
8
|
+
files: ['**/*.html', '**/*.handlebars']
|
|
9
9
|
}
|
|
10
10
|
],
|
|
11
11
|
plugins: ['stylelint-order'],
|
|
@@ -57,16 +57,8 @@ module.exports = {
|
|
|
57
57
|
],
|
|
58
58
|
'comment-no-empty': true,
|
|
59
59
|
'comment-pattern': null,
|
|
60
|
-
'comment-word-disallowed-list': null,
|
|
61
60
|
'comment-whitespace-inside': 'always',
|
|
62
|
-
'
|
|
63
|
-
'always',
|
|
64
|
-
{
|
|
65
|
-
except: ['after-custom-property', 'first-nested'],
|
|
66
|
-
ignore: ['after-comment', 'inside-single-line-block']
|
|
67
|
-
}
|
|
68
|
-
],
|
|
69
|
-
'custom-property-no-missing-var-function': true,
|
|
61
|
+
'comment-word-disallowed-list': null,
|
|
70
62
|
'custom-media-pattern': [
|
|
71
63
|
// eslint-disable-next-line sonarjs/no-duplicate-string -- enumeration
|
|
72
64
|
'^([a-z][a-z0-9]*)(-[a-z0-9]+)*$',
|
|
@@ -75,6 +67,14 @@ module.exports = {
|
|
|
75
67
|
`Expected custom media query name "${name}" to be kebab-case`
|
|
76
68
|
}
|
|
77
69
|
],
|
|
70
|
+
'custom-property-empty-line-before': [
|
|
71
|
+
'always',
|
|
72
|
+
{
|
|
73
|
+
except: ['after-custom-property', 'first-nested'],
|
|
74
|
+
ignore: ['after-comment', 'inside-single-line-block']
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
'custom-property-no-missing-var-function': true,
|
|
78
78
|
'custom-property-pattern': [
|
|
79
79
|
'^([a-z][a-z0-9]*)(-[a-z0-9]+)*$',
|
|
80
80
|
{
|
|
@@ -101,11 +101,11 @@ module.exports = {
|
|
|
101
101
|
],
|
|
102
102
|
'declaration-no-important': true, // Added
|
|
103
103
|
'declaration-property-max-values': null,
|
|
104
|
-
'declaration-property-value-no-unknown': true,
|
|
105
104
|
'declaration-property-unit-allowed-list': null,
|
|
106
105
|
'declaration-property-unit-disallowed-list': null,
|
|
107
106
|
'declaration-property-value-allowed-list': null,
|
|
108
107
|
'declaration-property-value-disallowed-list': null,
|
|
108
|
+
'declaration-property-value-no-unknown': true,
|
|
109
109
|
'font-family-name-quotes': 'always-where-recommended',
|
|
110
110
|
'font-family-no-duplicate-names': true,
|
|
111
111
|
'font-family-no-missing-generic-family-keyword': true,
|
|
@@ -139,6 +139,7 @@ module.exports = {
|
|
|
139
139
|
'media-feature-name-no-unknown': true,
|
|
140
140
|
'media-feature-name-no-vendor-prefix': true,
|
|
141
141
|
'media-feature-name-value-allowed-list': null,
|
|
142
|
+
'media-feature-name-value-no-unknown': true,
|
|
142
143
|
'media-feature-range-notation': 'context',
|
|
143
144
|
'named-grid-areas-no-invalid': true,
|
|
144
145
|
'no-descending-specificity': true,
|
|
@@ -149,6 +150,7 @@ module.exports = {
|
|
|
149
150
|
'no-invalid-position-at-import-rule': true,
|
|
150
151
|
'no-irregular-whitespace': true,
|
|
151
152
|
'no-unknown-animations': true, // Added
|
|
153
|
+
'no-unknown-custom-properties': true, // Added
|
|
152
154
|
'number-max-precision': 4,
|
|
153
155
|
'property-allowed-list': null,
|
|
154
156
|
'property-disallowed-list': null,
|
|
@@ -162,6 +164,7 @@ module.exports = {
|
|
|
162
164
|
}
|
|
163
165
|
],
|
|
164
166
|
'rule-selector-property-disallowed-list': null,
|
|
167
|
+
'selector-anb-no-unmatchable': true,
|
|
165
168
|
'selector-attribute-name-disallowed-list': null,
|
|
166
169
|
'selector-attribute-operator-allowed-list': null,
|
|
167
170
|
'selector-attribute-operator-disallowed-list': null,
|
|
@@ -237,6 +240,7 @@ module.exports = {
|
|
|
237
240
|
ignoreValues: ['box']
|
|
238
241
|
}
|
|
239
242
|
],
|
|
243
|
+
// eslint-disable-next-line sort-keys -- keep plugin rules separate
|
|
240
244
|
'order/properties-alphabetical-order': true
|
|
241
245
|
}
|
|
242
246
|
};
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aarongoldenthal/stylelint-config-standard",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "15.0.0",
|
|
4
4
|
"description": "Standard StyleLint configuration settings",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
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
|
-
"lint-js": "eslint
|
|
11
|
-
"lint-md": "markdownlint **/*.md
|
|
10
|
+
"lint-js": "eslint .",
|
|
11
|
+
"lint-md": "markdownlint-cli2 \"**/*.md\" \"#node_modules\"",
|
|
12
12
|
"prettier-check": "prettier --check .",
|
|
13
13
|
"prettier-fix": "prettier --write .",
|
|
14
14
|
"test": "jest --ci --config jest.config.json"
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"author": "Aaron Goldenthal <npm@aarongoldenthal.com>",
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"engines": {
|
|
26
|
-
"node": "^
|
|
26
|
+
"node": "^16.13.0 || ^18.12.0 || >=20.0.0"
|
|
27
27
|
},
|
|
28
28
|
"files": [
|
|
29
29
|
"index.js"
|
|
@@ -34,18 +34,18 @@
|
|
|
34
34
|
"homepage": "https://gitlab.com/gitlab-ci-utils/node/stylelint-config-standard",
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"postcss-html": "1.5.0",
|
|
37
|
-
"stylelint-order": "6.0.
|
|
37
|
+
"stylelint-order": "6.0.3"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@aarongoldenthal/eslint-config-standard": "
|
|
41
|
-
"eslint": "8.
|
|
42
|
-
"jest": "29.
|
|
43
|
-
"jest-junit": "
|
|
44
|
-
"markdownlint-
|
|
45
|
-
"prettier": "
|
|
46
|
-
"stylelint": "15.
|
|
40
|
+
"@aarongoldenthal/eslint-config-standard": "23.0.0",
|
|
41
|
+
"eslint": "8.45.0",
|
|
42
|
+
"jest": "29.6.1",
|
|
43
|
+
"jest-junit": "16.0.0",
|
|
44
|
+
"markdownlint-cli2": "0.8.1",
|
|
45
|
+
"prettier": "3.0.0",
|
|
46
|
+
"stylelint": "15.10.2"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"stylelint": "^15.
|
|
49
|
+
"stylelint": "^15.8.0"
|
|
50
50
|
}
|
|
51
51
|
}
|