@aarongoldenthal/stylelint-config-standard 13.0.0 → 14.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 +15 -15
- package/package.json +13 -13
package/index.js
CHANGED
|
@@ -1,14 +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
|
-
files: ['**/*.html', '**/*.handlebars'],
|
|
8
7
|
customSyntax: 'postcss-html',
|
|
9
|
-
|
|
10
|
-
indentation: 'tab'
|
|
11
|
-
}
|
|
8
|
+
files: ['**/*.html', '**/*.handlebars']
|
|
12
9
|
}
|
|
13
10
|
],
|
|
14
11
|
plugins: ['stylelint-order'],
|
|
@@ -60,16 +57,8 @@ module.exports = {
|
|
|
60
57
|
],
|
|
61
58
|
'comment-no-empty': true,
|
|
62
59
|
'comment-pattern': null,
|
|
63
|
-
'comment-word-disallowed-list': null,
|
|
64
60
|
'comment-whitespace-inside': 'always',
|
|
65
|
-
'
|
|
66
|
-
'always',
|
|
67
|
-
{
|
|
68
|
-
except: ['after-custom-property', 'first-nested'],
|
|
69
|
-
ignore: ['after-comment', 'inside-single-line-block']
|
|
70
|
-
}
|
|
71
|
-
],
|
|
72
|
-
'custom-property-no-missing-var-function': true,
|
|
61
|
+
'comment-word-disallowed-list': null,
|
|
73
62
|
'custom-media-pattern': [
|
|
74
63
|
// eslint-disable-next-line sonarjs/no-duplicate-string -- enumeration
|
|
75
64
|
'^([a-z][a-z0-9]*)(-[a-z0-9]+)*$',
|
|
@@ -78,6 +67,14 @@ module.exports = {
|
|
|
78
67
|
`Expected custom media query name "${name}" to be kebab-case`
|
|
79
68
|
}
|
|
80
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,
|
|
81
78
|
'custom-property-pattern': [
|
|
82
79
|
'^([a-z][a-z0-9]*)(-[a-z0-9]+)*$',
|
|
83
80
|
{
|
|
@@ -104,11 +101,11 @@ module.exports = {
|
|
|
104
101
|
],
|
|
105
102
|
'declaration-no-important': true, // Added
|
|
106
103
|
'declaration-property-max-values': null,
|
|
107
|
-
'declaration-property-value-no-unknown': true,
|
|
108
104
|
'declaration-property-unit-allowed-list': null,
|
|
109
105
|
'declaration-property-unit-disallowed-list': null,
|
|
110
106
|
'declaration-property-value-allowed-list': null,
|
|
111
107
|
'declaration-property-value-disallowed-list': null,
|
|
108
|
+
'declaration-property-value-no-unknown': true,
|
|
112
109
|
'font-family-name-quotes': 'always-where-recommended',
|
|
113
110
|
'font-family-no-duplicate-names': true,
|
|
114
111
|
'font-family-no-missing-generic-family-keyword': true,
|
|
@@ -152,6 +149,7 @@ module.exports = {
|
|
|
152
149
|
'no-invalid-position-at-import-rule': true,
|
|
153
150
|
'no-irregular-whitespace': true,
|
|
154
151
|
'no-unknown-animations': true, // Added
|
|
152
|
+
'no-unknown-custom-properties': true, // Added
|
|
155
153
|
'number-max-precision': 4,
|
|
156
154
|
'property-allowed-list': null,
|
|
157
155
|
'property-disallowed-list': null,
|
|
@@ -165,6 +163,7 @@ module.exports = {
|
|
|
165
163
|
}
|
|
166
164
|
],
|
|
167
165
|
'rule-selector-property-disallowed-list': null,
|
|
166
|
+
'selector-anb-no-unmatchable': true,
|
|
168
167
|
'selector-attribute-name-disallowed-list': null,
|
|
169
168
|
'selector-attribute-operator-allowed-list': null,
|
|
170
169
|
'selector-attribute-operator-disallowed-list': null,
|
|
@@ -240,6 +239,7 @@ module.exports = {
|
|
|
240
239
|
ignoreValues: ['box']
|
|
241
240
|
}
|
|
242
241
|
],
|
|
242
|
+
// eslint-disable-next-line sort-keys -- keep plugin rules separate
|
|
243
243
|
'order/properties-alphabetical-order': true
|
|
244
244
|
}
|
|
245
245
|
};
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aarongoldenthal/stylelint-config-standard",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "14.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": "2.8.
|
|
46
|
-
"stylelint": "15.1
|
|
40
|
+
"@aarongoldenthal/eslint-config-standard": "22.0.0",
|
|
41
|
+
"eslint": "8.40.0",
|
|
42
|
+
"jest": "29.5.0",
|
|
43
|
+
"jest-junit": "16.0.0",
|
|
44
|
+
"markdownlint-cli2": "0.7.1",
|
|
45
|
+
"prettier": "2.8.8",
|
|
46
|
+
"stylelint": "15.6.1"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"stylelint": "^15.
|
|
49
|
+
"stylelint": "^15.4.0"
|
|
50
50
|
}
|
|
51
51
|
}
|