@mikey-pro/stylelint-config 10.3.3 → 10.3.7
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 +14 -5
- package/package.json +6 -2
package/index.js
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
const durationValues = [
|
|
2
|
+
String.raw`/\d*\.?\d+m?s\b/`,
|
|
3
|
+
'/^(none|inherit|initial|unset|revert)$/i',
|
|
4
|
+
'/var\\(/',
|
|
5
|
+
];
|
|
6
|
+
|
|
1
7
|
const config = {
|
|
2
8
|
extends: [
|
|
3
9
|
'stylelint-config-standard',
|
|
@@ -20,16 +26,20 @@ const config = {
|
|
|
20
26
|
rules: {
|
|
21
27
|
'color-function-notation': 'modern',
|
|
22
28
|
'color-named': 'never',
|
|
23
|
-
|
|
29
|
+
// Stylelint matches the name WITHOUT the leading `--`.
|
|
30
|
+
'custom-property-pattern': '^[a-z0-9-]+$',
|
|
24
31
|
'declaration-no-important': true,
|
|
32
|
+
// Require an explicit time unit anywhere in the value (decimals and any
|
|
33
|
+
// component order are fine); keywords and var() pass through.
|
|
25
34
|
'declaration-property-value-allowed-list': {
|
|
26
|
-
animation:
|
|
27
|
-
transition:
|
|
35
|
+
animation: durationValues,
|
|
36
|
+
transition: durationValues,
|
|
28
37
|
},
|
|
29
38
|
'declaration-property-value-disallowed-list': {
|
|
30
39
|
'/^grid/': ['auto'],
|
|
31
40
|
},
|
|
32
|
-
|
|
41
|
+
// Plugin rules are namespaced; the bare name is an "Unknown rule".
|
|
42
|
+
'scale-unlimited/declaration-strict-value': [
|
|
33
43
|
['/color/', 'z-index'],
|
|
34
44
|
{
|
|
35
45
|
ignoreKeywords: ['transparent', 'inherit', 'currentColor'],
|
|
@@ -38,7 +48,6 @@ const config = {
|
|
|
38
48
|
'function-calc-no-unspaced-operator': true,
|
|
39
49
|
'max-nesting-depth': 3,
|
|
40
50
|
'media-feature-name-no-vendor-prefix': true,
|
|
41
|
-
'media-query-list-comma-newline-after': 'always-multi-line',
|
|
42
51
|
'number-max-precision': 4,
|
|
43
52
|
'order/properties-alphabetical-order': true,
|
|
44
53
|
'property-no-vendor-prefix': true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikey-pro/stylelint-config",
|
|
3
|
-
"version": "10.3.
|
|
3
|
+
"version": "10.3.7",
|
|
4
4
|
"description": "Mikey Pro Stylelint configuration",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"dependencies": {
|
|
@@ -18,7 +18,11 @@
|
|
|
18
18
|
"node": ">=20.19.0",
|
|
19
19
|
"npm": ">=9.0.0"
|
|
20
20
|
},
|
|
21
|
-
"files": [
|
|
21
|
+
"files": [
|
|
22
|
+
"index.js",
|
|
23
|
+
"README.md",
|
|
24
|
+
"LICENSE"
|
|
25
|
+
],
|
|
22
26
|
"homepage": "https://github.com/chiefmikey/mikey-pro#readme",
|
|
23
27
|
"repository": {
|
|
24
28
|
"type": "git",
|