Configure linting for switch

This commit is contained in:
Jeremie Pardou-Piquemal 2021-04-14 21:29:39 +02:00 committed by Jérémie Pardou-Piquemal
parent 89aef6d2ed
commit 686f693d09

View file

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