瀏覽代碼

Configure linting for switch

Jeremie Pardou-Piquemal 3 年之前
父節點
當前提交
686f693d09
共有 1 個文件被更改,包括 1 次插入1 次删除
  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"],