fix: lint type import

This commit is contained in:
Julien Froidefond
2025-03-02 14:02:23 +01:00
parent e8386a4834
commit a4b521fe2e
78 changed files with 595 additions and 242 deletions

View File

@@ -3,8 +3,9 @@
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "unused-imports"],
"rules": {
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
@@ -22,7 +23,7 @@
"no-unreachable": "error",
"no-unused-expressions": "warn",
"no-unused-private-class-members": "warn",
"unused-imports/no-unused-imports": "warn",
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"warn",
{
@@ -33,6 +34,7 @@
}
],
"no-empty-function": "warn",
"no-empty": ["warn", { "allowEmptyCatch": true }]
"no-empty": ["warn", { "allowEmptyCatch": true }],
"@typescript-eslint/consistent-type-imports": ["error", { "prefer": "type-imports" }]
}
}