@foray1010/stylelint-config 15.0.0 → 17.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.
Files changed (3) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/index.mjs +17 -1
  3. package/package.json +11 -10
package/CHANGELOG.md CHANGED
@@ -3,6 +3,41 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [17.0.0](https://github.com/foray1010/common-presets/compare/@foray1010/stylelint-config@16.0.0...@foray1010/stylelint-config@17.0.0) (2025-10-31)
7
+
8
+ ### ⚠ BREAKING CHANGES
9
+
10
+ - **deps:** bump peer dependencies to current version
11
+ - require nodejs `^20.19.0 || ^22.12.0 || >=24.11.0`
12
+ - require stylelint ^16.25.0
13
+ - **deps:** require stylelint `^16.23.0`
14
+
15
+ ### Features
16
+
17
+ - **deps:** update dependency stylelint-config-standard to v39 ([1ce6de8](https://github.com/foray1010/common-presets/commit/1ce6de81dafdeb46d9a41cf3c47bd1599b6d1188))
18
+ - require stylelint ^16.25.0 ([ad9cf5f](https://github.com/foray1010/common-presets/commit/ad9cf5f46f2e5328ded8d350e3616ee5e3bef1a6))
19
+ - **stylelint-config:** enforce oklch color ([d809897](https://github.com/foray1010/common-presets/commit/d8098970c7cfc3f942236965fe6b641677c1f661))
20
+
21
+ ### Miscellaneous Chores
22
+
23
+ - **deps:** bump peer dependencies to current version ([a47bc48](https://github.com/foray1010/common-presets/commit/a47bc48f7db8f4a527163ab35448f4eba455496f))
24
+ - require nodejs `^20.19.0 || ^22.12.0 || >=24.11.0` ([aae1835](https://github.com/foray1010/common-presets/commit/aae1835f9517621ddc0d71f31bda39e9163213a1))
25
+
26
+ ## [16.0.0](https://github.com/foray1010/common-presets/compare/@foray1010/stylelint-config@15.0.0...@foray1010/stylelint-config@16.0.0) (2025-03-11)
27
+
28
+ ### ⚠ BREAKING CHANGES
29
+
30
+ - **stylelint-config:** require nodejs `^20.10.0 || >=22.11.0`
31
+ - **deps:** require stylelint `^16.15.0`
32
+
33
+ ### Bug Fixes
34
+
35
+ - **deps:** update dependency stylelint-config-standard to v37 ([2b4e8bf](https://github.com/foray1010/common-presets/commit/2b4e8bf11947d12721d081c879e4beaca19fb90e))
36
+
37
+ ### Miscellaneous Chores
38
+
39
+ - **stylelint-config:** require nodejs `^20.10.0 || >=22.11.0` ([dc98275](https://github.com/foray1010/common-presets/commit/dc982755c5d2d08c10a0fcdf688c5b35e0785206))
40
+
6
41
  ## [15.0.0](https://github.com/foray1010/common-presets/compare/@foray1010/stylelint-config@14.0.0...@foray1010/stylelint-config@15.0.0) (2024-01-20)
7
42
 
8
43
  ### ⚠ BREAKING CHANGES
package/index.mjs CHANGED
@@ -6,7 +6,7 @@ const stylelintConfig = {
6
6
  'stylelint-config-concentric-order',
7
7
  'stylelint-prettier/recommended',
8
8
  ],
9
- plugins: ['stylelint-no-unsupported-browser-features'],
9
+ plugins: ['stylelint-gamut', 'stylelint-no-unsupported-browser-features'],
10
10
  rules: {
11
11
  // unnecessary and may cause unexpected results when used with stylelint-order
12
12
  'comment-empty-line-before': null,
@@ -24,6 +24,22 @@ const stylelintConfig = {
24
24
  severity: 'warning',
25
25
  },
26
26
  ],
27
+
28
+ /** Enforce oklch color */
29
+ // prefer oklch color function
30
+ 'color-no-hex': true,
31
+ // block legacy color functions
32
+ 'function-disallowed-list': [
33
+ 'hsl',
34
+ 'hsla',
35
+ 'hwb',
36
+ 'lab',
37
+ 'lch',
38
+ 'rgb',
39
+ 'rgba',
40
+ ],
41
+ // avoid oklch color out of gamut range
42
+ 'gamut/color-no-out-gamut-range': true,
27
43
  },
28
44
  }
29
45
  export default stylelintConfig
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package",
3
3
  "name": "@foray1010/stylelint-config",
4
- "version": "15.0.0",
4
+ "version": "17.0.0",
5
5
  "homepage": "https://github.com/foray1010/common-presets/tree/master/packages/stylelint-config#readme",
6
6
  "bugs": "https://github.com/foray1010/common-presets/issues",
7
7
  "repository": {
@@ -20,21 +20,22 @@
20
20
  "type:check": "tsc"
21
21
  },
22
22
  "dependencies": {
23
- "stylelint-config-concentric-order": "^5.2.0",
24
- "stylelint-config-css-modules": "^4.4.0",
25
- "stylelint-config-standard": "^36.0.0",
26
- "stylelint-no-unsupported-browser-features": "^8.0.0",
27
- "stylelint-prettier": "^5.0.0"
23
+ "stylelint-config-concentric-order": "^5.2.1",
24
+ "stylelint-config-css-modules": "^4.5.1",
25
+ "stylelint-config-standard": "^39.0.1",
26
+ "stylelint-gamut": "^1.3.4",
27
+ "stylelint-no-unsupported-browser-features": "^8.0.5",
28
+ "stylelint-prettier": "^5.0.3"
28
29
  },
29
30
  "peerDependencies": {
30
- "prettier": "^3.0.0",
31
- "stylelint": "^16.2.0"
31
+ "prettier": "^3.6.2",
32
+ "stylelint": "^16.25.0"
32
33
  },
33
34
  "engines": {
34
- "node": "^18.12.0 || >=20.9.0"
35
+ "node": "^20.19.0 || ^22.12.0 || >=24.11.0"
35
36
  },
36
37
  "publishConfig": {
37
38
  "access": "public"
38
39
  },
39
- "gitHead": "46fd1d0f56467d4b461f6264eabd040712989a7e"
40
+ "gitHead": "f4d31b1d0075b0c77a6ae59e7442a977df4b4d15"
40
41
  }