diff options
Diffstat (limited to '.eslintrc.cjs')
-rw-r--r-- | .eslintrc.cjs | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 3d944e4..e76ff6f 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs | |||
@@ -44,8 +44,9 @@ module.exports = { | |||
44 | }, | 44 | }, |
45 | }, | 45 | }, |
46 | rules: { | 46 | rules: { |
47 | // TODO Flip this to `ignorePackages` once we are on `nodenext` resolution. | 47 | // `import/exteions` is buggy with ts files: |
48 | 'import/extensions': ['error', 'never'], | 48 | // https://github.com/import-js/eslint-plugin-import/issues/2111 |
49 | 'import/extensions': 'off', | ||
49 | 'import/no-unresolved': 'error', | 50 | 'import/no-unresolved': 'error', |
50 | 'import/order': [ | 51 | 'import/order': [ |
51 | 'error', | 52 | 'error', |
@@ -107,13 +108,6 @@ module.exports = { | |||
107 | }, | 108 | }, |
108 | }, | 109 | }, |
109 | { | 110 | { |
110 | files: ['**/*.js'], | ||
111 | rules: { | ||
112 | // ESM requires extensions for imports. | ||
113 | 'import/extensions': ['error', 'ignorePackages'], | ||
114 | }, | ||
115 | }, | ||
116 | { | ||
117 | files: ['**/*.cjs'], | 111 | files: ['**/*.cjs'], |
118 | parserOptions: { | 112 | parserOptions: { |
119 | sourceType: 'script', | 113 | sourceType: 'script', |