@firefoxic/stylelint-config 5.0.0 → 6.0.1

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.
Files changed (2) hide show
  1. package/package.json +51 -56
  2. package/stylelint.config.js +9 -37
package/package.json CHANGED
@@ -1,57 +1,52 @@
1
1
  {
2
- "name": "@firefoxic/stylelint-config",
3
- "description": "Shared config for stylelint by firefoxic.",
4
- "version": "5.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.12 || >=22.11"
25
- },
26
- "peerDependencies": {
27
- "stylelint": "^16.10.0"
28
- },
29
- "dependencies": {
30
- "@stylistic/stylelint-plugin": "^3.1.1",
31
- "stylelint-gamut": "^1.3.4",
32
- "stylelint-plugin-logical-css": "^1.2.1"
33
- },
34
- "devDependencies": {
35
- "@firefoxic/eslint-config": "^4.0.0",
36
- "@firefoxic/update-changelog": "^0.2.1",
37
- "eslint": "^9.13.0",
38
- "stylelint": "^16.10.0"
39
- },
40
- "keywords": [
41
- "config",
42
- "css",
43
- "lint",
44
- "linter",
45
- "linting",
46
- "style",
47
- "stylelint"
48
- ],
49
- "scripts": {
50
- "lint": "eslint",
51
- "pretest": "pnpm lint",
52
- "test": "node --test",
53
- "preversion": "pnpm test",
54
- "version": "update-changelog",
55
- "postversion": "pnpm publish --provenance --access public --no-git-checks"
56
- }
57
- }
2
+ "name": "@firefoxic/stylelint-config",
3
+ "description": "Shared config for stylelint by firefoxic.",
4
+ "version": "6.0.1",
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.1.0"
29
+ },
30
+ "dependencies": {
31
+ "@stylistic/stylelint-plugin": "^5.0.1",
32
+ "stylelint-gamut": "^2.0.0",
33
+ "stylelint-plugin-logical-css": "^2.0.2"
34
+ },
35
+ "scripts": {
36
+ "help": "make help"
37
+ },
38
+ "devDependencies": {
39
+ "@firefoxic/oxlint-config": "^0.1.3",
40
+ "oxlint": "^1.50.0",
41
+ "stylelint": "^17.1.0"
42
+ },
43
+ "keywords": [
44
+ "config",
45
+ "css",
46
+ "lint",
47
+ "linter",
48
+ "linting",
49
+ "style",
50
+ "stylelint"
51
+ ]
52
+ }
@@ -11,25 +11,19 @@ export default {
11
11
  `always`,
12
12
  {
13
13
  except: [
14
- `first-nested`,
15
14
  `blockless-after-same-name-blockless`,
15
+ `first-nested`,
16
16
  ],
17
17
  ignore: [`after-comment`],
18
18
  },
19
19
  ],
20
20
  "at-rule-no-unknown": true,
21
21
  "at-rule-no-vendor-prefix": true,
22
- "block-no-empty": [
23
- true,
24
- {
25
- ignore: [`comments`],
26
- },
27
- ],
22
+ "block-no-empty": true,
23
+ "color-function-alias-notation": `without-alpha`,
28
24
  "color-function-notation": `modern`,
29
- "color-hex-alpha": `never`,
30
- "color-hex-length": `long`,
31
25
  "color-named": `never`,
32
- "color-no-invalid-hex": true,
26
+ "color-no-hex": true,
33
27
  "comment-no-empty": true,
34
28
  "custom-property-no-missing-var-function": true,
35
29
  "declaration-block-no-duplicate-custom-properties": true,
@@ -37,30 +31,8 @@ export default {
37
31
  "declaration-block-no-shorthand-property-overrides": true,
38
32
  "declaration-block-single-line-max-declarations": 0,
39
33
  "declaration-no-important": true,
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
- ],
34
+ "declaration-property-value-no-unknown": true,
35
+ "display-notation": `full`,
64
36
  "font-family-name-quotes": `always-where-required`,
65
37
  "font-family-no-duplicate-names": [
66
38
  true,
@@ -134,8 +106,9 @@ export default {
134
106
  "value-keyword-case": `lower`,
135
107
  "value-no-vendor-prefix": true,
136
108
 
137
- "plugin/use-logical-properties-and-values": true,
138
- "plugin/use-logical-units": true,
109
+ "logical-css/require-logical-keywords": true,
110
+ "logical-css/require-logical-properties": true,
111
+ "logical-css/require-logical-units": true,
139
112
 
140
113
  "gamut/color-no-out-gamut-range": true,
141
114
 
@@ -150,7 +123,6 @@ export default {
150
123
  "@stylistic/block-opening-brace-newline-after": `always`,
151
124
  "@stylistic/block-opening-brace-space-after": `always-single-line`,
152
125
  "@stylistic/block-opening-brace-space-before": `always`,
153
- "@stylistic/color-hex-case": `lower`,
154
126
  "@stylistic/declaration-bang-space-after": `never`,
155
127
  "@stylistic/declaration-bang-space-before": `always`,
156
128
  "@stylistic/declaration-block-semicolon-newline-after": `always`,