-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
37 lines (37 loc) · 1.23 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
36
37
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "prettier", "react", "react-hooks", "simple-import-sort"],
"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",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"quotes": ["error", "single", "avoid-escape"],
"no-trailing-spaces": ["error"],
"no-console": ["warn", { "allow": ["warn", "error"] }],
"semi": ["error", "never"],
"comma-dangle": ["error", "always-multiline"],
"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"]
}
}