-
Notifications
You must be signed in to change notification settings - Fork 13
/
.eslintrc.json
89 lines (89 loc) · 3.01 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
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
78
79
80
81
82
83
84
85
86
87
88
89
{
"ignorePatterns": ["*.config.ts", "*.test.tsx", "*.stories.tsx"],
"env": {
"browser": true,
"es2021": true
},
"extends": [
"love",
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"plugins": ["react", "react-hooks", "@typescript-eslint"],
"overrides": [
{
"files": ["*.ts", "*.tsx", ".js", ".jsx"],
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"parserOptions": {
"project": ["./tsconfig.json"]
},
"rules": {
"linebreak-style": ["error", "unix"],
"quotes": ["error", "single"],
"semi": ["error", "never"],
"comma-dangle": 0,
"react/prop-types": 0,
"react/react-in-jsx-scope": 0,
"@typescript-eslint/comma-dangle": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/ban-types": 0,
"@typescript-eslint/no-duplicate-enum-values": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-extraneous-class": 0,
"@typescript-eslint/no-unsafe-argument": 0,
"@typescript-eslint/no-unsafe-enum-comparison": 0,
"@typescript-eslint/no-unsafe-assignment": 0,
"@typescript-eslint/no-unsafe-call": 0,
"@typescript-eslint/no-unsafe-member-access": 0,
"@typescript-eslint/no-unsafe-return": 0,
"@typescript-eslint/restrict-template-expressions": 0,
"@typescript-eslint/strict-boolean-expressions": 0,
"@typescript-eslint/array-type": 0,
"@typescript-eslint/consistent-indexed-object-style": 0,
"@typescript-eslint/consistent-type-assertions": 0,
"@typescript-eslint/consistent-type-definitions": 0,
"@typescript-eslint/no-floating-promises": 0,
"@typescript-eslint/no-invalid-void-type": 0,
"@typescript-eslint/no-misused-promises": 0,
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/no-unnecessary-type-assertion": 0,
"@typescript-eslint/no-redundant-type-constituents": 0,
"@typescript-eslint/prefer-includes": 0,
"@typescript-eslint/promise-function-async": 0,
"@typescript-eslint/restrict-plus-operands": 0,
"@typescript-eslint/unbound-method": 0,
"eqeqeq": 0,
"n/handle-callback-err": 0,
"no-extra-boolean-cast": 0,
"no-prototype-builtins": 0,
"no-unneeded-ternary": 0,
"no-void": 0,
"promise/param-names": 0,
"react/display-name": 0,
"react/jsx-key": 0,
"react/no-children-prop": 0,
"react/no-deprecated": 0,
"react/no-unescaped-entities": 0,
"spaced-comment": 0
}
}
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module"
},
"settings": {
"react": {
"version": "detect"
}
}
}