From 83e58d5d3d8328c752d262678f671c1f838f631c Mon Sep 17 00:00:00 2001 From: Timothy Leung Date: Thu, 12 Dec 2024 12:35:04 +0000 Subject: [PATCH] Add plugin back to eslint config --- eslint.config.mjs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eslint.config.mjs b/eslint.config.mjs index 69dc1cefb..4e52e7910 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -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( @@ -31,6 +32,7 @@ export default tseslint.config( plugins: { header: getHeaderPlugin(), import: importPlugin, + "unused-imports": unusedImports, }, languageOptions: { parser: typescriptEslintParser, @@ -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": {