Skip to content

Commit

Permalink
Disable some redundant eslint-plugin-import rules
Browse files Browse the repository at this point in the history
  • Loading branch information
sjdemartini committed Nov 17, 2024
1 parent 4d4a56d commit 4ee880e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import reactHooks from "eslint-plugin-react-hooks";
import reactRefresh from "eslint-plugin-react-refresh";
import tssUnusedClasses from "eslint-plugin-tss-unused-classes";
import globals from "globals";
// eslint-disable-next-line import/no-unresolved
import tseslint from "typescript-eslint";

export default tseslint.config(
Expand Down Expand Up @@ -110,6 +109,15 @@ export default tseslint.config(
},
],

// Per
// https://typescript-eslint.io/troubleshooting/typed-linting/performance/#eslint-plugin-import,
// we disable some redundant rules, which helps with performance
"import/named": "off",
"import/namespace": "off",
"import/default": "off",
"import/no-named-as-default-member": "off",
"import/no-unresolved": "off",

"import/no-extraneous-dependencies": [
"error",
{
Expand Down

0 comments on commit 4ee880e

Please sign in to comment.