mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 03:01:54 +00:00
[Lint] Lint unused imports (#493)
This commit is contained in:
@@ -2,6 +2,7 @@ import globals from "globals"
|
||||
import eslint from "@eslint/js"
|
||||
import tseslint from "typescript-eslint"
|
||||
import stylistic from "@stylistic/eslint-plugin"
|
||||
import unusedImports from "eslint-plugin-unused-imports"
|
||||
|
||||
export default tseslint.config(
|
||||
{ files: ["**/*.{js,mjs,ts,mts}"] },
|
||||
@@ -161,4 +162,15 @@ export default tseslint.config(
|
||||
},
|
||||
files: ["test/**/*.ts"],
|
||||
},
|
||||
{
|
||||
plugins: {
|
||||
"unused-imports": unusedImports,
|
||||
},
|
||||
rules: {
|
||||
"@typescript-eslint/no-explicit-any": "off",
|
||||
"@typescript-eslint/no-unused-vars": "off",
|
||||
"@typescript-eslint/prefer-as-const": "off",
|
||||
"unused-imports/no-unused-imports": "error",
|
||||
},
|
||||
},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user