@aarongoldenthal/stylelint-config-standard 13.0.1 → 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 +16 -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,
|
|
@@ -149,6 +149,7 @@ module.exports = {
|
|
|
149
149
|
'no-invalid-position-at-import-rule': true,
|
|
150
150
|
'no-irregular-whitespace': true,
|
|
151
151
|
'no-unknown-animations': true, // Added
|
|
152
|
+
'no-unknown-custom-properties': true, // Added
|
|
152
153
|
'number-max-precision': 4,
|
|
153
154
|
'property-allowed-list': null,
|
|
154
155
|
'property-disallowed-list': null,
|
|
@@ -162,6 +163,7 @@ module.exports = {
|
|
|
162
163
|
}
|
|
163
164
|
],
|
|
164
165
|
'rule-selector-property-disallowed-list': null,
|
|
166
|
+
'selector-anb-no-unmatchable': true,
|
|
165
167
|
'selector-attribute-name-disallowed-list': null,
|
|
166
168
|
'selector-attribute-operator-allowed-list': null,
|
|
167
169
|
'selector-attribute-operator-disallowed-list': null,
|
|
@@ -237,6 +239,7 @@ module.exports = {
|
|
|
237
239
|
ignoreValues: ['box']
|
|
238
240
|
}
|
|
239
241
|
],
|
|
242
|
+
// eslint-disable-next-line sort-keys -- keep plugin rules separate
|
|
240
243
|
'order/properties-alphabetical-order': true
|
|
241
244
|
}
|
|
242
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
|
}
|