-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc.json
41 lines (41 loc) · 1.34 KB
/
.eslintrc.json
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
38
39
40
41
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": ["@stylistic", "@typescript-eslint"],
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:react-hooks/recommended"],
"rules": {
"eqeqeq": ["error", "smart"],
"@stylistic/indent": "error",
"@stylistic/quotes": ["error", "single"],
"@stylistic/arrow-parens": "error",
"@stylistic/arrow-spacing": "error",
"@stylistic/brace-style": "error",
"@stylistic/computed-property-spacing": ["error", "never"],
"@stylistic/jsx-quotes": ["error", "prefer-single"],
"@stylistic/keyword-spacing": [
"error",
{
"before": true
}
],
"@stylistic/semi": "error",
"@stylistic/space-before-function-paren": "error",
"@stylistic/space-infix-ops": "error",
"@stylistic/space-unary-ops": "error",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/consistent-type-definitions": ["error", "type"],
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-explicit-any": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "error",
"react/prop-types": "off"
},
"env": {
"browser": true,
"es2021": true
}
}