Skip to content

Commit

Permalink
Add plugin back to eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
tzyl committed Dec 12, 2024
1 parent f426ba8 commit 83e58d5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import * as typescriptEslintParser from "@typescript-eslint/parser";
import originalHeaderPlugin from "eslint-plugin-header";
import * as importPlugin from "eslint-plugin-import";
import unusedImports from "eslint-plugin-unused-imports";
import * as tseslint from "typescript-eslint";

export default tseslint.config(
Expand All @@ -31,6 +32,7 @@ export default tseslint.config(
plugins: {
header: getHeaderPlugin(),
import: importPlugin,
"unused-imports": unusedImports,
},
languageOptions: {
parser: typescriptEslintParser,
Expand Down Expand Up @@ -88,6 +90,8 @@ export default tseslint.config(
"import/no-unresolved": "off",
"import/no-named-as-default": "off", // this used to be an error but the plugin isnt updated for 9
"no-console": "error",

"unused-imports/no-unused-imports": "error",
},
settings: {
"import/parsers": {
Expand Down

0 comments on commit 83e58d5

Please sign in to comment.