Commit 27d4787
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
- .github/workflows
- src
- test
- mock
- stylelint-error
- stylelint-load-error
- stylelint-recorder
- stylelint
- types
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
67 | 70 | | |
68 | 71 | | |
69 | 72 | | |
| |||
0 commit comments