Skip to content

Commit

Permalink
feat(typescript): disable consistent-type-definitions
Browse files Browse the repository at this point in the history
there are valid use-cases for both types and interfaces
  • Loading branch information
TimoBechtel committed Nov 13, 2023
1 parent 51861d4 commit f201b90
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions eslint/rules/typescript.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,8 @@ module.exports = defineConfig({
checksVoidReturn: false,
},
],
// While I'd prefer using types over interfaces, there are a lot of cases
// where interfaces are needed, e.g. merging declarations and this rule is too strict.
'@typescript-eslint/consistent-type-definitions': 'off',
},
});

0 comments on commit f201b90

Please sign in to comment.