Skip to content

Commit 27d4787

Browse files
feat: add stylelint v17 support (#377)
* feat: add stylelint v17 support Use dynamic import() to load stylelint, enabling support for ESM-only stylelint v17 while maintaining backward compatibility with v13-v16. - Switch from require() to dynamic import() for loading stylelint - Update formatter loading to handle promise-based formatters (v16+) - Add module: node16 to tsconfig for dynamic import support - Bump minimum Node.js version to 20.19.0 (required by stylelint v17) - Update tests to use stylelintPath option for mocking Closes #376 BREAKING CHANGE: Minimum Node.js version is now 20.19.0 * fix: remove skipLibCheck * fix: upgrade stylelint version * fix: npm audit * refactor: coverage and dead code * ci: add stylelint 17.x --------- Co-authored-by: Ricardo Gobbo de Souza <ricardogobbosouza@yahoo.com.br>
1 parent 4cc8128 commit 27d4787

19 files changed

Lines changed: 583 additions & 328 deletions

File tree

.cspell.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
"notcss",
1717
"stylelintcache",
1818
"eslintcache",
19-
"autocrlf"
19+
"autocrlf",
20+
"nodenext"
2021
],
2122

2223
"ignorePaths": [

.github/workflows/nodejs.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,11 @@ jobs:
6262
matrix:
6363
os: [ubuntu-latest, windows-latest, macos-latest]
6464
node-version: [18.x, 20.x, 22.x, 24.x]
65-
stylelint-version: [13.x, 14.x, 15.x, 16.x]
65+
stylelint-version: [13.x, 14.x, 15.x, 16.x, 17.x]
6666
webpack-version: [latest]
67+
exclude:
68+
- node-version: 18.x
69+
stylelint-version: 17.x
6770

6871
runs-on: ${{ matrix.os }}
6972

0 commit comments

Comments
 (0)