Skip to content

Commit

Permalink
Enforce default clauses in switch statements to be last (default-case…
Browse files Browse the repository at this point in the history
…-last)

Fixes standard/standard#1553
  • Loading branch information
feross committed Oct 21, 2020
1 parent 57e4704 commit f158b09
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@

"rules": {
"no-loss-of-precision": "error",
"default-case-last": "error",

"accessor-pairs": "error",
"array-bracket-spacing": ["error", "never"],
"arrow-spacing": ["error", { "before": true, "after": true }],
Expand Down

0 comments on commit f158b09

Please sign in to comment.