-
Notifications
You must be signed in to change notification settings - Fork 19
/
.eslintrc.json
122 lines (122 loc) · 3.59 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
{
"root": true,
"env": {
"es6": true,
"node": true,
"jest": true
},
"extends": [
"airbnb-typescript",
"plugin:prettier/recommended",
"@react-native-community",
"plugin:@typescript-eslint/recommended",
"plugin:import/typescript",
"plugin:react-hooks/recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"parserOptions": {
"project": ["./tsconfig.json"]
}
}
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"project": "./tsconfig.json",
"sourceType": "module"
},
"plugins": ["react-hooks", "@typescript-eslint", "react", "import"],
"settings": {
"react": {
"version": "detect"
},
"import/extensions": [".ts", ".tsx", ".d.ts", ".js", ".jsx"],
"import/external-module-folders": ["node_modules", "node_modules/@types"],
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx", ".d.ts"]
},
"import/resolver": {
"node": {
"extensions": [".ts", ".tsx", ".d.ts", ".js", ".jsx"],
"paths": ["src"]
}
}
},
"rules": {
"import/named": "off",
"@typescript-eslint/no-unnecessary-type-assertion": 0,
"prefer-template": "off",
"no-param-reassign": "off",
"react/no-unused-prop-types": "off",
"@typescript-eslint/restrict-plus-operands": 0,
"no-return-assign": "off",
"array-callback-return": "off",
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/prefer-regexp-exec": 0,
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/no-var-requires": 0,
"no-spaced-func": "off",
"@typescript-eslint/restrict-template-expressions": 0,
"@typescript-eslint/no-unsafe-call": 0,
"@typescript-eslint/no-misused-promises": 0,
"@typescript-eslint/no-floating-promises": 0,
"@typescript-eslint/no-unsafe-assignment": 0,
"@typescript-eslint/ban-ts-comment": 0,
"@typescript-eslint/no-unsafe-member-access": 0,
"@typescript-eslint/no-unsafe-return": 0,
"react/display-name": 0,
"prettier/prettier": "error",
"@typescript-eslint/explicit-module-boundary-types": 0,
"@typescript-eslint/no-loop-func": 1,
"@typescript-eslint/no-redeclare": 1,
"@typescript-eslint/no-shadow": 1,
"@typescript-eslint/naming-convention": 0,
"@typescript-eslint/no-use-before-define": 0,
"@typescript-eslint/no-unsafe-argument": 0,
"comma-dangle": "off",
"consistent-return": 0,
"global-require": 0,
"import/no-unresolved": 1,
"max-classes-per-file": ["error", 2],
"no-await-in-loop": 0,
"no-inner-declarations": 0,
"no-nested-ternary": 0,
"no-underscore-dangle": 0,
"quotes": ["error", "single"],
"react-hooks/exhaustive-deps": ["error"],
"react-native/no-inline-styles": 1,
"react/destructuring-assignment": 0,
"react/jsx-filename-extension": [
1,
{
"extensions": [".jsx", ".tsx"]
}
],
"react/jsx-props-no-spreading": 0,
"react/no-access-state-in-setstate": 0,
"react/no-unescaped-entities": 0,
"react/require-default-props": 0,
"react/state-in-constructor": 0,
"react/static-property-placement": 0,
"import/extensions": [
"warn",
"ignorePackages",
{
"js": "never",
"mjs": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
]
}
}