-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
48 lines (48 loc) · 1.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
{
"extends": [
"standard-with-typescript",
"plugin:react/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 9,
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module",
"project": ["./tsconfig.json"]
},
"plugins": ["@typescript-eslint", "react"],
"env": {
"es6": true,
"node": true,
"mocha": true,
"browser": true
},
"globals": {
"chrome": true,
"document": false,
"navigator": false,
"window": false,
"browser": true,
"_": true
},
"settings": {
"react": {
"version": "16.12.0"
}
},
"rules": {
"no-console": 1,
"react/prop-types": 0,
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": ["error"],
"@typescript-eslint/return-await": ["off"],
"@typescript-eslint/promise-function-async": ["off"],
"@typescript-eslint/no-redeclare": ["off"],
"@typescript-eslint/restrict-plus-operands": ["off"],
"@typescript-eslint/restrict-template-expressions": ["off"],
"react/jsx-key": "off"
}
}