@firefoxic/stylelint-config 7.0.0 → 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 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
- "name": "@firefoxic/stylelint-config",
3
- "description": "Shared config for stylelint by firefoxic.",
4
- "version": "7.0.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": ">=20.19",
25
- "pnpm": ">=10.30"
26
- },
27
- "peerDependencies": {
28
- "stylelint": "^17.8.0"
29
- },
30
- "dependencies": {
31
- "@stylistic/stylelint-plugin": "^5.1.0",
32
- "stylelint-gamut": "^2.0.0",
33
- "stylelint-plugin-logical-css": "^2.1.0"
34
- },
35
- "scripts": {
36
- "help": "make help"
37
- },
38
- "devDependencies": {
39
- "@firefoxic/oxlint-config": "^0.3.1",
40
- "oxlint": "^1.60.0",
41
- "stylelint": "^17.8.0"
42
- },
43
- "keywords": [
44
- "config",
45
- "css",
46
- "lint",
47
- "linter",
48
- "linting",
49
- "style",
50
- "stylelint"
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
+ }
@@ -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
  {
@@ -92,6 +99,7 @@ export default {
92
99
  "selector-max-id": 0,
93
100
  "selector-max-universal": 2,
94
101
  "selector-no-deprecated": true,
102
+ "selector-no-invalid": true,
95
103
  "selector-not-notation": `complex`,
96
104
  "selector-pseudo-class-no-unknown": true,
97
105
  "selector-pseudo-element-colon-notation": `double`,
@@ -104,14 +112,12 @@ export default {
104
112
  },
105
113
  ],
106
114
  "string-no-newline": true,
115
+ "unit-layout-mappings": `flow-relative`,
107
116
  "unit-no-unknown": true,
108
117
  "value-keyword-case": `lower`,
118
+ "value-keyword-layout-mappings": `flow-relative`,
109
119
  "value-no-vendor-prefix": true,
110
120
 
111
- "logical-css/require-logical-keywords": true,
112
- "logical-css/require-logical-properties": true,
113
- "logical-css/require-logical-units": true,
114
-
115
121
  "gamut/color-no-out-gamut-range": true,
116
122
 
117
123
  "@stylistic/at-rule-name-case": `lower`,