Skip to content

Commit 048dfba

Browse files
Fix ESLint import/no-unresolved CI failure for stylelint 17
Co-authored-by: francinelucca <40550942+francinelucca@users.noreply.github.com>
1 parent 0dbcccb commit 048dfba

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

eslint.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ export default [
2121
'github/no-then': 'off',
2222
'i18n-text/no-en': 'off',
2323
'import/extensions': ['error', 'ignorePackages'],
24+
// stylelint 17 is ESM-only and has no `main` field, only `exports`. The legacy
25+
// eslint-import-resolver-node (used by eslint-plugin-import@2) cannot resolve
26+
// packages that rely solely on the `exports` field, so we opt out for `stylelint`.
27+
'import/no-unresolved': ['error', {ignore: ['^stylelint$']}],
2428
},
2529
},
2630
{

0 commit comments

Comments
 (0)