-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc
19 lines (19 loc) · 953 Bytes
/
.eslintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
"extends": ["plugin:react-hooks/recommended", "react-app"],
"rules": {
"array-bracket-spacing": "error",
"comma-spacing": "error",
"indent": ["warn", 2, { "ignoreComments": true, "SwitchCase": 1, "CallExpression": { "arguments": 1 } }],
"keyword-spacing": ["error", { "after": true, "before": true }],
"new-cap": "error",
"no-multi-spaces": ["error", { "ignoreEOLComments": true }],
"no-redeclare": ["error", { "builtinGlobals": true }],
"no-unused-vars": ["warn", { "argsIgnorePattern": "^_", "caughtErrorsIgnorePattern": "^_", "varsIgnorePattern": "^_" }],
"object-curly-spacing": ["error", "always"],
"quotes": ["error", "single", { "allowTemplateLiterals": true, "avoidEscape": true }],
"semi": ["error", "always"],
"space-before-function-paren": ["error", { "anonymous": "never", "asyncArrow": "always", "named": "never" }],
"space-in-parens": "error",
"space-infix-ops": "error"
}
}