@foray1010/stylelint-config 16.0.0 → 18.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/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
+ ## [18.0.0](https://github.com/foray1010/common-presets/compare/@foray1010/stylelint-config@17.0.0...@foray1010/stylelint-config@18.0.0) (2026-05-17)
7
+
8
+ ### ⚠ BREAKING CHANGES
9
+
10
+ - **stylelint-config:** require stylelint `^17.11.0`
11
+ - drop node v20 and v25
12
+
13
+ ### Features
14
+
15
+ - **stylelint-config:** require stylelint `^17.11.0`
16
+
17
+ ### Miscellaneous Chores
18
+
19
+ - drop node v20 and v25
20
+
21
+ ## [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)
22
+
23
+ ### ⚠ BREAKING CHANGES
24
+
25
+ - **deps:** bump peer dependencies to current version
26
+ - require nodejs `^20.19.0 || ^22.12.0 || >=24.11.0`
27
+ - require stylelint ^16.25.0
28
+ - **deps:** require stylelint `^16.23.0`
29
+
30
+ ### Features
31
+
32
+ - **deps:** update dependency stylelint-config-standard to v39 ([1ce6de8](https://github.com/foray1010/common-presets/commit/1ce6de81dafdeb46d9a41cf3c47bd1599b6d1188))
33
+ - require stylelint ^16.25.0 ([ad9cf5f](https://github.com/foray1010/common-presets/commit/ad9cf5f46f2e5328ded8d350e3616ee5e3bef1a6))
34
+ - **stylelint-config:** enforce oklch color ([d809897](https://github.com/foray1010/common-presets/commit/d8098970c7cfc3f942236965fe6b641677c1f661))
35
+
36
+ ### Miscellaneous Chores
37
+
38
+ - **deps:** bump peer dependencies to current version ([a47bc48](https://github.com/foray1010/common-presets/commit/a47bc48f7db8f4a527163ab35448f4eba455496f))
39
+ - require nodejs `^20.19.0 || ^22.12.0 || >=24.11.0` ([aae1835](https://github.com/foray1010/common-presets/commit/aae1835f9517621ddc0d71f31bda39e9163213a1))
40
+
6
41
  ## [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)
7
42
 
8
43
  ### ⚠ BREAKING CHANGES
package/README.md CHANGED
@@ -22,21 +22,21 @@ Z for looser rules
22
22
 
23
23
  1. Create an `.stylelintrc.mjs` in the project root
24
24
 
25
- ```js
26
- const config = {
27
- extends: ['@foray1010/stylelint-config'],
28
- }
29
- export default config
30
- ```
25
+ ```js
26
+ const config = {
27
+ extends: ['@foray1010/stylelint-config'],
28
+ }
29
+ export default config
30
+ ```
31
31
 
32
32
  1. Use default stylelintignore via npm script
33
33
 
34
- ```json
35
- {
36
- "scripts": {
37
- "stylelint": "stylelint --ignore-path=node_modules/@foray1010/stylelint-config/stylelintignore"
38
- }
39
- }
40
- ```
34
+ ```json
35
+ {
36
+ "scripts": {
37
+ "stylelint": "stylelint --ignore-path=node_modules/@foray1010/stylelint-config/stylelintignore"
38
+ }
39
+ }
40
+ ```
41
41
 
42
- then use `npm run stylelint` or `yarn stylelint` to replace `stylelint`
42
+ then use `npm run stylelint` or `yarn stylelint` to replace `stylelint`
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": "16.0.0",
4
+ "version": "18.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": "^37.0.0",
26
- "stylelint-no-unsupported-browser-features": "^8.0.0",
27
- "stylelint-prettier": "^5.0.0"
23
+ "stylelint-config-concentric-order": "^5.5.0",
24
+ "stylelint-config-css-modules": "^4.6.0",
25
+ "stylelint-config-standard": "^40.0.0",
26
+ "stylelint-gamut": "^2.0.1",
27
+ "stylelint-no-unsupported-browser-features": "^8.1.1",
28
+ "stylelint-prettier": "^5.0.3"
28
29
  },
29
30
  "peerDependencies": {
30
- "prettier": "^3.0.0",
31
- "stylelint": "^16.15.0"
31
+ "prettier": "^3.6.2",
32
+ "stylelint": "^17.11.0"
32
33
  },
33
34
  "engines": {
34
- "node": "^20.10.0 || >=22.11.0"
35
+ "node": "^22.12.0 || ^24.11.0 || >=26"
35
36
  },
36
37
  "publishConfig": {
37
38
  "access": "public"
38
39
  },
39
- "gitHead": "7ab2a92cce9564e8f577500663a09ab3a75641ed"
40
+ "gitHead": "b0dcdf4522afb97a5ee7088c20299aad17738056"
40
41
  }
package/tsconfig.json CHANGED
@@ -3,6 +3,7 @@
3
3
  "extends": "@foray1010/tsconfig/tsconfig.base.json",
4
4
  "compilerOptions": {
5
5
  "allowJs": true,
6
- "checkJs": true
7
- }
6
+ "checkJs": true,
7
+ "types": ["node"],
8
+ },
8
9
  }