@aarongoldenthal/stylelint-config-standard 15.0.0 → 17.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/index.js +18 -5
- package/package.json +24 -20
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2021 -
|
|
3
|
+
Copyright (c) 2021 - 2024 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/index.js
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
/* eslint-disable unicorn/no-null -- null required to disable rules */
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
module.exports = {
|
|
2
|
+
export default {
|
|
5
3
|
overrides: [
|
|
6
4
|
{
|
|
7
5
|
customSyntax: 'postcss-html',
|
|
8
6
|
files: ['**/*.html', '**/*.handlebars']
|
|
9
7
|
}
|
|
10
8
|
],
|
|
11
|
-
plugins: [
|
|
9
|
+
plugins: [
|
|
10
|
+
'stylelint-declaration-strict-value',
|
|
11
|
+
'stylelint-order',
|
|
12
|
+
'stylelint-use-logical-spec'
|
|
13
|
+
],
|
|
12
14
|
reportDescriptionlessDisables: true,
|
|
13
15
|
reportInvalidScopeDisables: true,
|
|
14
16
|
reportNeedlessDisables: true,
|
|
@@ -133,6 +135,7 @@ module.exports = {
|
|
|
133
135
|
}
|
|
134
136
|
],
|
|
135
137
|
'length-zero-no-unit': true,
|
|
138
|
+
'lightness-notation': 'percentage',
|
|
136
139
|
'max-nesting-depth': null,
|
|
137
140
|
'media-feature-name-allowed-list': null,
|
|
138
141
|
'media-feature-name-disallowed-list': null,
|
|
@@ -241,6 +244,16 @@ module.exports = {
|
|
|
241
244
|
}
|
|
242
245
|
],
|
|
243
246
|
// eslint-disable-next-line sort-keys -- keep plugin rules separate
|
|
244
|
-
'order/properties-alphabetical-order': true
|
|
247
|
+
'order/properties-alphabetical-order': true,
|
|
248
|
+
// eslint-disable-next-line sort-keys -- keep plugin rules separate
|
|
249
|
+
'liberty/use-logical-spec': 'always',
|
|
250
|
+
'scale-unlimited/declaration-strict-value': [
|
|
251
|
+
'/color$/',
|
|
252
|
+
{
|
|
253
|
+
expandShorthand: true,
|
|
254
|
+
ignoreValues: ['inherit', 'transparent', 'currentColor'],
|
|
255
|
+
recurseLonghand: true
|
|
256
|
+
}
|
|
257
|
+
]
|
|
245
258
|
}
|
|
246
259
|
};
|
package/package.json
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aarongoldenthal/stylelint-config-standard",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "17.0.0",
|
|
4
4
|
"description": "Standard StyleLint configuration settings",
|
|
5
|
-
"
|
|
5
|
+
"exports": "./index.js",
|
|
6
|
+
"type": "module",
|
|
6
7
|
"scripts": {
|
|
7
|
-
"hooks
|
|
8
|
-
"hooks
|
|
9
|
-
"lint": "npm run lint
|
|
10
|
-
"lint
|
|
11
|
-
"lint
|
|
12
|
-
"prettier
|
|
13
|
-
"prettier
|
|
14
|
-
"test": "
|
|
8
|
+
"hooks:pre-commit": "npm run lint && npm run prettier:check",
|
|
9
|
+
"hooks:pre-push": "npm audit --audit-level=high && npm test",
|
|
10
|
+
"lint": "npm run lint:js && npm run lint:md",
|
|
11
|
+
"lint:js": "eslint .",
|
|
12
|
+
"lint:md": "markdownlint-cli2 \"**/*.md\" \"#node_modules\"",
|
|
13
|
+
"prettier:check": "prettier --check .",
|
|
14
|
+
"prettier:fix": "prettier --write .",
|
|
15
|
+
"test": "vitest run --coverage",
|
|
16
|
+
"test:no-coverage": "vitest run"
|
|
15
17
|
},
|
|
16
18
|
"repository": {
|
|
17
19
|
"type": "git",
|
|
@@ -23,7 +25,7 @@
|
|
|
23
25
|
"author": "Aaron Goldenthal <npm@aarongoldenthal.com>",
|
|
24
26
|
"license": "MIT",
|
|
25
27
|
"engines": {
|
|
26
|
-
"node": "^
|
|
28
|
+
"node": "^18.12.0 || >=20.0.0"
|
|
27
29
|
},
|
|
28
30
|
"files": [
|
|
29
31
|
"index.js"
|
|
@@ -34,18 +36,20 @@
|
|
|
34
36
|
"homepage": "https://gitlab.com/gitlab-ci-utils/node/stylelint-config-standard",
|
|
35
37
|
"dependencies": {
|
|
36
38
|
"postcss-html": "1.5.0",
|
|
37
|
-
"stylelint-
|
|
39
|
+
"stylelint-declaration-strict-value": "1.10.4",
|
|
40
|
+
"stylelint-order": "6.0.4",
|
|
41
|
+
"stylelint-use-logical-spec": "5.0.1"
|
|
38
42
|
},
|
|
39
43
|
"devDependencies": {
|
|
40
|
-
"@aarongoldenthal/eslint-config-standard": "
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
44
|
+
"@aarongoldenthal/eslint-config-standard": "25.0.0",
|
|
45
|
+
"@vitest/coverage-v8": "1.1.3",
|
|
46
|
+
"eslint": "8.56.0",
|
|
47
|
+
"markdownlint-cli2": "0.11.0",
|
|
48
|
+
"prettier": "3.1.1",
|
|
49
|
+
"stylelint": "16.1.0",
|
|
50
|
+
"vitest": "1.1.3"
|
|
47
51
|
},
|
|
48
52
|
"peerDependencies": {
|
|
49
|
-
"stylelint": "^
|
|
53
|
+
"stylelint": "^16.1.0"
|
|
50
54
|
}
|
|
51
55
|
}
|