Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fix: intend size by switch case

Ilian Sapundshievaf05251834a1
diff --git a/.eslintrc b/.eslintrc
index ae2279b17..570d53723 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -10,7 +10,7 @@
"node": true
},
"rules": {
- "indent": ["warn", 2],
+ "indent": ["warn", 2, { "SwitchCase": 1 }],
"max-len": ["warn", { "code": 150 }],
"react/jsx-indent": ["warn", 2],
"arrow-parens": ["off"],
@@ -29,11 +29,23 @@
"promise/always-return": "error",
"promise/catch-or-return": "error",
"promise/no-native": "off",
- "react/sort-comp": ["error", {
- "order": ["type-annotations", "static-methods", "lifecycle", "everything-else", "render"]
- }],
+ "react/sort-comp": [
+ "error",
+ {
+ "order": [
+ "type-annotations",
+ "static-methods",
+ "lifecycle",
+ "everything-else",
+ "render"
+ ]
+ }
+ ],
"react/jsx-no-bind": "off",
- "react/jsx-filename-extension": ["error", { "extensions": [".js", ".jsx"] }],
+ "react/jsx-filename-extension": [
+ "error",
+ { "extensions": [".js", ".jsx"] }
+ ],
"react/jsx-indent-props": ["warn", 2],
"react/prefer-stateless-function": "off",
"react/forbid-prop-types": "warn",