Browse Source

Configure linting for switch

Jeremie Pardou-Piquemal 3 years ago
parent
commit
686f693d09
1 changed files with 1 additions and 1 deletions
  1. 1 1
      .eslintrc.js

+ 1 - 1
.eslintrc.js

@@ -20,7 +20,7 @@ module.exports = {
   },
   plugins: ["react", "react-hooks"],
   rules: {
-    indent: ["error", 2],
+    indent: ["error", 2, { SwitchCase: 1 }],
     "linebreak-style": ["error", "unix"],
     quotes: ["error", "double"],
     semi: ["error", "always"],