@firefoxic/stylelint-config 2.0.0 → 4.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/package.json +12 -10
- package/stylelint.config.js +34 -10
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firefoxic/stylelint-config",
|
|
3
3
|
"description": "Shared config for stylelint by firefoxic.",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "4.0.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Sergey Artemov",
|
|
@@ -24,17 +24,19 @@
|
|
|
24
24
|
"node": "^18.12 || >=20.9"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"stylelint": "^16.
|
|
27
|
+
"stylelint": "^16.8.1"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@stylistic/stylelint-plugin": "^
|
|
30
|
+
"@stylistic/stylelint-plugin": "^3.0.0",
|
|
31
|
+
"stylelint-gamut": "^1.3.4",
|
|
32
|
+
"stylelint-plugin-logical-css": "^1.2.1"
|
|
31
33
|
},
|
|
32
34
|
"devDependencies": {
|
|
33
|
-
"@firefoxic/eslint-config": "^1.0
|
|
34
|
-
"@firefoxic/update-changelog": "^0.
|
|
35
|
-
"eslint": "^9.
|
|
36
|
-
"husky": "^9.
|
|
37
|
-
"stylelint": "^16.
|
|
35
|
+
"@firefoxic/eslint-config": "^2.1.0",
|
|
36
|
+
"@firefoxic/update-changelog": "^0.2.0",
|
|
37
|
+
"eslint": "^9.9.0",
|
|
38
|
+
"husky": "^9.1.4",
|
|
39
|
+
"stylelint": "^16.8.1"
|
|
38
40
|
},
|
|
39
41
|
"keywords": [
|
|
40
42
|
"config",
|
|
@@ -50,7 +52,7 @@
|
|
|
50
52
|
"pretest": "pnpm lint",
|
|
51
53
|
"test": "node --test",
|
|
52
54
|
"preversion": "pnpm test",
|
|
53
|
-
"version": "update-changelog
|
|
54
|
-
"postversion": "pnpm publish --access
|
|
55
|
+
"version": "update-changelog",
|
|
56
|
+
"postversion": "pnpm publish --provenance --access public --no-git-checks"
|
|
55
57
|
}
|
|
56
58
|
}
|
package/stylelint.config.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
/** @type {import('stylelint').Config} */
|
|
2
2
|
export default {
|
|
3
|
-
plugins: [
|
|
3
|
+
plugins: [
|
|
4
|
+
`@stylistic/stylelint-plugin`,
|
|
5
|
+
`stylelint-plugin-logical-css`,
|
|
6
|
+
`stylelint-gamut`,
|
|
7
|
+
],
|
|
4
8
|
rules: {
|
|
5
9
|
"annotation-no-unknown": true,
|
|
6
10
|
"at-rule-empty-line-before": [
|
|
@@ -33,7 +37,30 @@ export default {
|
|
|
33
37
|
"declaration-block-no-shorthand-property-overrides": true,
|
|
34
38
|
"declaration-block-single-line-max-declarations": 0,
|
|
35
39
|
"declaration-no-important": true,
|
|
36
|
-
"declaration-property-value-
|
|
40
|
+
"declaration-property-value-disallowed-list": {
|
|
41
|
+
display: [
|
|
42
|
+
`inline-block`,
|
|
43
|
+
`inline-table`,
|
|
44
|
+
`inline-flex`,
|
|
45
|
+
`inline-grid`,
|
|
46
|
+
`inline`,
|
|
47
|
+
`block`,
|
|
48
|
+
`flex`,
|
|
49
|
+
`grid`,
|
|
50
|
+
`table`,
|
|
51
|
+
`list-item`,
|
|
52
|
+
`flow-root`,
|
|
53
|
+
],
|
|
54
|
+
},
|
|
55
|
+
"declaration-property-value-no-unknown": [
|
|
56
|
+
true,
|
|
57
|
+
// See: https://github.com/stylelint/stylelint/issues/7241
|
|
58
|
+
{
|
|
59
|
+
typesSyntax: {
|
|
60
|
+
color: `| oklch( [ <percentage> | <number> | none] [ <percentage> | <number> | none] [ <hue> | none] [ / [<alpha-value> | none] ]? )`,
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
],
|
|
37
64
|
"font-family-name-quotes": `always-where-required`,
|
|
38
65
|
"font-family-no-duplicate-names": [
|
|
39
66
|
true,
|
|
@@ -72,14 +99,6 @@ export default {
|
|
|
72
99
|
"no-invalid-position-at-import-rule": true,
|
|
73
100
|
"no-irregular-whitespace": true,
|
|
74
101
|
"no-unknown-custom-media": true,
|
|
75
|
-
"number-max-precision": [
|
|
76
|
-
3,
|
|
77
|
-
{
|
|
78
|
-
insideFunctions: {
|
|
79
|
-
"/^(oklch|oklab)$/": 9,
|
|
80
|
-
},
|
|
81
|
-
},
|
|
82
|
-
],
|
|
83
102
|
"property-no-unknown": [
|
|
84
103
|
true,
|
|
85
104
|
{
|
|
@@ -115,6 +134,11 @@ export default {
|
|
|
115
134
|
"value-keyword-case": `lower`,
|
|
116
135
|
"value-no-vendor-prefix": true,
|
|
117
136
|
|
|
137
|
+
"plugin/use-logical-properties-and-values": true,
|
|
138
|
+
"plugin/use-logical-units": true,
|
|
139
|
+
|
|
140
|
+
"gamut/color-no-out-gamut-range": true,
|
|
141
|
+
|
|
118
142
|
"@stylistic/at-rule-name-case": `lower`,
|
|
119
143
|
"@stylistic/at-rule-name-space-after": `always`,
|
|
120
144
|
"@stylistic/at-rule-semicolon-newline-after": `always`,
|