Skip to content

Commit

Permalink
feat: add consistent-type-imports and no-import-type-side-effects rule
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This rule will require downstream compliance due to raising new errors
  • Loading branch information
michaeljaltamirano committed May 10, 2024
1 parent 5c1af3a commit 64f2088
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,19 @@ module.exports = {
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"sort-destructure-keys/sort-destructure-keys": "error",
/**
* {@link https://typescript-eslint.io/rules/consistent-type-imports | TypeScript ESLint: consistent-type-imports docs}
*/
"@typescript-eslint/consistent-type-imports": [
"error",
{
disallowTypeAnnotations: true,
fixStyle: "inline-type-imports",
prefer: "type-imports",
},
],
/** Prefers `import type {}` syntax over `import { type }` if all imports are type-only */
"@typescript-eslint/no-import-type-side-effects": "error",
"@typescript-eslint/no-unused-vars": [
"error",
{
Expand Down

0 comments on commit 64f2088

Please sign in to comment.