Skip to content

Commit f1b3ceb

Browse files
committed
enable import/extensions lint
but paper over a bug in eslint-plugin-import so it doesn't warn on a false positive.
1 parent c8f94a6 commit f1b3ceb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

eslint.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import js from "@eslint/js";
22
import typescriptEslint from "@typescript-eslint/eslint-plugin";
33
import importt from "eslint-plugin-import";
4+
// eslint-disable-next-line import/extensions
45
import prettier from "eslint-plugin-prettier/recommended";
56
import simpleImportSort from "eslint-plugin-simple-import-sort";
67
import globals from "globals";
@@ -58,6 +59,8 @@ export default [
5859
},
5960
],
6061

62+
"import/extensions": ["warn", "ignorePackages"],
63+
6164
"simple-import-sort/imports": "warn",
6265
"simple-import-sort/exports": "warn",
6366
},

0 commit comments

Comments
 (0)