-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
35 lines (35 loc) · 1.03 KB
/
.eslintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "prettier", "react", "react-hooks"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"parserOptions": {
"ecmaVersion": 2018
},
"rules": {
"react/jsx-uses-vars": ["error"],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"no-trailing-spaces": ["error"],
"no-console": ["warn", { "allow": ["warn", "error"] }],
"brace-style": ["error"],
"comma-spacing": ["error"],
"array-bracket-spacing": ["error"],
"keyword-spacing": ["error"],
"key-spacing": ["error"],
"eol-last": ["error"],
"switch-colon-spacing": ["error", { "after": true, "before": false }],
"object-curly-spacing": ["error", "always"],
"space-infix-ops": ["error", { "int32Hint": false }],
"space-before-blocks": ["warn"],
"arrow-parens": ["warn"]
},
"env": {
"node": true
}
}