@firefoxic/stylelint-config 6.0.2 → 8.0.0-rc.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/README.md +1 -1
- package/package.json +62 -51
- package/stylelint.config.js +12 -4
package/README.md
CHANGED
|
@@ -20,8 +20,8 @@ pnpm add -D stylelint @firefoxic/stylelint-config
|
|
|
20
20
|
Set your `stylelint.config.js` to:
|
|
21
21
|
|
|
22
22
|
```js
|
|
23
|
+
/** @type {import('stylelint').Config} */
|
|
23
24
|
export default {
|
|
24
|
-
customSyntax: "postcss-scss", // If your styles syntax is different from CSS (don't forget to install the package)
|
|
25
25
|
extends: "@firefoxic/stylelint-config",
|
|
26
26
|
rules: {
|
|
27
27
|
// Your overrides or additions to rules
|
package/package.json
CHANGED
|
@@ -1,52 +1,63 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
2
|
+
"name": "@firefoxic/stylelint-config",
|
|
3
|
+
"description": "Shared config for stylelint by firefoxic.",
|
|
4
|
+
"version": "8.0.0-rc.0",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": {
|
|
7
|
+
"name": "Sergey Artemov",
|
|
8
|
+
"email": "firefoxic.dev@gmail.com"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://github.com/firefoxic/stylelint-config#readme",
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/firefoxic/stylelint-config/issues"
|
|
13
|
+
},
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+https://github.com/firefoxic/stylelint-config.git"
|
|
17
|
+
},
|
|
18
|
+
"type": "module",
|
|
19
|
+
"exports": "./stylelint.config.js",
|
|
20
|
+
"files": [
|
|
21
|
+
"./stylelint.config.js"
|
|
22
|
+
],
|
|
23
|
+
"engines": {
|
|
24
|
+
"node": ">=22.22"
|
|
25
|
+
},
|
|
26
|
+
"devEngines": {
|
|
27
|
+
"runtime": {
|
|
28
|
+
"name": "node",
|
|
29
|
+
"version": ">=22.22",
|
|
30
|
+
"onFail": "download"
|
|
31
|
+
},
|
|
32
|
+
"packageManager": {
|
|
33
|
+
"name": "pnpm",
|
|
34
|
+
"version": ">=11",
|
|
35
|
+
"onFail": "download"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"peerDependencies": {
|
|
39
|
+
"stylelint": "^17.11.0"
|
|
40
|
+
},
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"@stylistic/stylelint-plugin": "^5.1.0",
|
|
43
|
+
"stylelint-gamut": "^2.0.0"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@firefoxic/oxlint-config": "^0.3.1",
|
|
47
|
+
"oxlint": "^1.63.0",
|
|
48
|
+
"stylelint": "^17.11.0",
|
|
49
|
+
"node": "runtime:>=22.22"
|
|
50
|
+
},
|
|
51
|
+
"keywords": [
|
|
52
|
+
"config",
|
|
53
|
+
"css",
|
|
54
|
+
"lint",
|
|
55
|
+
"linter",
|
|
56
|
+
"linting",
|
|
57
|
+
"style",
|
|
58
|
+
"stylelint"
|
|
59
|
+
],
|
|
60
|
+
"scripts": {
|
|
61
|
+
"help": "make help"
|
|
62
|
+
}
|
|
63
|
+
}
|
package/stylelint.config.js
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
/** @type {import('stylelint').Config} */
|
|
2
2
|
export default {
|
|
3
|
+
languageOptions: {
|
|
4
|
+
directionality: {
|
|
5
|
+
block: `top-to-bottom`,
|
|
6
|
+
inline: `left-to-right`,
|
|
7
|
+
},
|
|
8
|
+
},
|
|
3
9
|
plugins: [
|
|
4
10
|
`@stylistic/stylelint-plugin`,
|
|
5
11
|
`stylelint-plugin-logical-css`,
|
|
@@ -71,6 +77,7 @@ export default {
|
|
|
71
77
|
"no-invalid-position-at-import-rule": true,
|
|
72
78
|
"no-irregular-whitespace": true,
|
|
73
79
|
"no-unknown-custom-media": true,
|
|
80
|
+
"property-layout-mappings": `flow-relative`,
|
|
74
81
|
"property-no-unknown": [
|
|
75
82
|
true,
|
|
76
83
|
{
|
|
@@ -78,6 +85,7 @@ export default {
|
|
|
78
85
|
},
|
|
79
86
|
],
|
|
80
87
|
"property-no-vendor-prefix": true,
|
|
88
|
+
"relative-selector-nesting-notation": `implicit`,
|
|
81
89
|
"rule-empty-line-before": [
|
|
82
90
|
`always`,
|
|
83
91
|
{
|
|
@@ -90,6 +98,8 @@ export default {
|
|
|
90
98
|
"selector-max-compound-selectors": 2,
|
|
91
99
|
"selector-max-id": 0,
|
|
92
100
|
"selector-max-universal": 2,
|
|
101
|
+
"selector-no-deprecated": true,
|
|
102
|
+
"selector-no-invalid": true,
|
|
93
103
|
"selector-not-notation": `complex`,
|
|
94
104
|
"selector-pseudo-class-no-unknown": true,
|
|
95
105
|
"selector-pseudo-element-colon-notation": `double`,
|
|
@@ -102,14 +112,12 @@ export default {
|
|
|
102
112
|
},
|
|
103
113
|
],
|
|
104
114
|
"string-no-newline": true,
|
|
115
|
+
"unit-layout-mappings": `flow-relative`,
|
|
105
116
|
"unit-no-unknown": true,
|
|
106
117
|
"value-keyword-case": `lower`,
|
|
118
|
+
"value-keyword-layout-mappings": `flow-relative`,
|
|
107
119
|
"value-no-vendor-prefix": true,
|
|
108
120
|
|
|
109
|
-
"logical-css/require-logical-keywords": true,
|
|
110
|
-
"logical-css/require-logical-properties": true,
|
|
111
|
-
"logical-css/require-logical-units": true,
|
|
112
|
-
|
|
113
121
|
"gamut/color-no-out-gamut-range": true,
|
|
114
122
|
|
|
115
123
|
"@stylistic/at-rule-name-case": `lower`,
|