Skip to content

Commit

Permalink
disable default-case rule for switch statements
Browse files Browse the repository at this point in the history
Often switch statements work on enums or string unions. There it makes no sense to have a default case.
  • Loading branch information
simonseyock authored Aug 3, 2022
1 parent 6c939ff commit c4171aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ module.exports = {
'camelcase': 'warn',
'comma-dangle': 'off',
'curly': 'warn',
'default-case': 'warn',
'default-case': 'off',
'dot-notation': 'warn',
'eol-last': 'warn',
'eqeqeq': [
Expand Down

0 comments on commit c4171aa

Please sign in to comment.