Skip to content

Commit

Permalink
feat(typescript): Add no-mixed-enums rule
Browse files Browse the repository at this point in the history
  • Loading branch information
MorevM committed Feb 25, 2023
1 parent 5fe55e9 commit ba20610
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions configurations/typescript/rules/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,10 @@ module.exports = {
checksVoidReturn: true,
}],

// Disallow enums from having both number and string members
// https://typescript-eslint.io/rules/no-mixed-enums
'@typescript-eslint/no-mixed-enums': 'error',

// Disallow the use of custom TypeScript modules and namespaces
// https://typescript-eslint.io/rules/no-namespace
'@typescript-eslint/no-namespace': ['error', {
Expand Down

0 comments on commit ba20610

Please sign in to comment.