-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc
More file actions
52 lines (52 loc) · 1.61 KB
/
.eslintrc
File metadata and controls
52 lines (52 loc) · 1.61 KB
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
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"project": "./tsconfig.json",
"extraFileExtensions": [".scss"],
"ecmaFeatures": {
"jsx": true
},
"useJSXTextNode": true
},
"plugins": ["@typescript-eslint", "react-hooks", "react"],
"rules": {
"semi": "off",
"@typescript-eslint/semi": ["error"],
"quotes": ["error", "double"],
"prefer-const": [
"warn",
{
"ignoreReadBeforeAssign": true
}
],
"no-use-before-define": ["error", { "functions": false }],
"getter-return": ["error"],
"no-debugger": ["error"],
"no-extra-semi": ["error"],
"no-extra-boolean-cast": ["error"],
"no-unexpected-multiline": ["error"],
"no-unneeded-ternary": ["error"],
"object-curly-newline": ["error"],
"object-curly-spacing": ["error", "always"],
"object-property-newline": [
"error",
{ "allowAllPropertiesOnSameLine": true }
],
"no-var": ["error"],
"prefer-arrow-callback": ["error"],
"new-parens": ["error", "always"],
"no-lonely-if": ["error"],
"no-multiple-empty-lines": ["error", { "max": 1 }],
"no-mixed-spaces-and-tabs": ["error"],
"no-whitespace-before-property": ["error"],
"brace-style": ["error"],
"@typescript-eslint/member-delimiter-style": ["error"],
"indent": ["error", 2],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react/jsx-max-props-per-line": ["error", { "when": "multiline" }],
"react/jsx-first-prop-new-line": ["error", "multiline"],
"@typescript-eslint/no-explicit-any": "warn"
}
}