Skip to content

Commit

Permalink
feat: introduce @typescript-eslint/consistent-type-imports rule
Browse files Browse the repository at this point in the history
  • Loading branch information
otofu-square committed Aug 3, 2022
1 parent efef7bb commit d3474c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ module.exports = {
"import/named": "off",
"import/namespace": "off",
"import/newline-after-import": "error",
"import/no-duplicates": "error",
"import/no-unresolved": "off",
"import/order": [
"error",
Expand All @@ -77,7 +78,7 @@ module.exports = {
},
],
"no-console": ["warn", { allow: ["info", "warn", "error", "dir"] }],
"no-duplicate-imports": "error",
"no-duplicate-imports": "off",
"no-implicit-coercion": ["error", { allow: ["!!"] }],
"no-irregular-whitespace": "off",
"no-prototype-builtins": "off",
Expand Down Expand Up @@ -105,6 +106,7 @@ module.exports = {
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/consistent-type-definitions": ["error", "type"],
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-empty-function": "off",
Expand Down

0 comments on commit d3474c1

Please sign in to comment.