-
Notifications
You must be signed in to change notification settings - Fork 263
/
.eslintrc
77 lines (77 loc) · 2.09 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{
"root": true,
"env": {
"browser": true,
"es2021": true,
"node": true
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2021,
"sourceType": "module",
"project": "./tsconfig.json"
},
"settings": {
"react": {
"version": "detect"
}
},
"parser": "@typescript-eslint/parser",
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"prettier"
],
"plugins": ["prettier", "@typescript-eslint", "react-hooks"],
"rules": {
"prettier/prettier": [
"error",
{
"tabWidth": 2,
"useTabs": false,
"jsxSingleQuote": true,
"singleQuote": true,
"quoteProps": "as-needed",
"bracketSameLine": false,
"trailingComma": "all",
"bracketSpacing": true,
"semi": false,
"arrowParens": "always"
}
],
"linebreak-style": ["error", "unix"],
"quotes": ["error", "single", { "allowTemplateLiterals": true }],
"semi": ["error", "never"],
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-shadow": "off",
"curly": "error",
"no-multiple-empty-lines": ["error", { "max": 0 }],
"eqeqeq": ["error", "always"],
"no-else-return": "error",
"no-implicit-coercion": "error",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"import/prefer-default-export": "off",
"react/prop-types": "off",
"react/jsx-props-no-spreading": "off",
"react/require-default-props": "off",
"react/no-danger": "off",
"no-await-in-loop": "off",
"no-continue": "off",
"no-alert": "off",
"no-restricted-syntax": "off",
"no-param-reassign": "off",
"class-methods-use-this": "off",
"@typescript-eslint/no-unused-expressions": "off",
"no-underscore-dangle": "off",
"no-console": "off",
"import/no-extraneous-dependencies": "off",
"import/no-cycle": "off"
}
}