Skip to content

Commit 2f53b0c

Browse files
Copilotmfranzke
andauthored
Add stylelint 17 compatibility (#164)
* Initial plan * Add stylelint 17 compatibility support Co-authored-by: mfranzke <[email protected]> * Update stylelint to v17 and remove redundant test script Co-authored-by: mfranzke <[email protected]> * Update stylelint-config-if-function to minor version --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: mfranzke <[email protected]>
1 parent 8d1186e commit 2f53b0c

File tree

4 files changed

+155
-196
lines changed

4 files changed

+155
-196
lines changed

.changeset/kind-coats-poke.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"stylelint-config-if-function": minor
3+
---
4+
5+
refactor: Add stylelint 17 compatibility

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"lint:stylelint": "stylelint test/fixtures/*.input.css --config .config/.stylelintrc.json",
4242
"lint:stylelint:14": "npx stylelint@14 test/fixtures/*.input.css --config .config/.stylelintrc.older.json",
4343
"lint:stylelint:15": "npx stylelint@15 test/fixtures/*.input.css --config .config/.stylelintrc.older.json",
44+
"lint:stylelint:16": "npx stylelint@16 test/fixtures/*.input.css --config .config/.stylelintrc.json",
4445
"lint:xo": "xo",
4546
"prelint:packages": "pnpm run build",
4647
"prepare": "husky",
@@ -67,8 +68,8 @@
6768
"prettier-plugin-organize-imports": "4.3.0",
6869
"prettier-plugin-pkg": "0.21.2",
6970
"publint": "0.3.16",
70-
"stylelint": "^16.26.1",
71-
"stylelint-config-standard": "^39.0.1",
71+
"stylelint": "^17.0.0",
72+
"stylelint-config-standard": "^40.0.0",
7273
"vite": "7.2.6",
7374
"vitest": "4.0.16",
7475
"xo": "1.2.3"

packages/stylelint-config-if-function/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"prepublishOnly": "pnpm run build"
3535
},
3636
"peerDependencies": {
37-
"stylelint": "^14.5.1 || ^15.0.0 || ^16.0.0"
37+
"stylelint": "^14.5.1 || ^15.0.0 || ^16.0.0 || ^17.0.0"
3838
},
3939
"devDependencies": {
4040
"microbundle": "0.15.1"

0 commit comments

Comments
 (0)