-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.json
56 lines (56 loc) · 1.24 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
{
"root": true,
"env": {
"browser": true,
"es6": true,
"node": true,
"jest": true,
"jasmine": true
},
"plugins": ["@typescript-eslint"],
"parser": "@typescript-eslint/parser",
"extends": "react-app",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2019,
"sourceType": "module"
},
"rules": {
"camelcase": "off",
"explicit-function-return-type": "off",
"no-empty-function": "warn",
"import/prefer-default-export": "off",
"consistent-return": "warn",
"guard-for-in": "warn",
"import/extensions": "off",
"no-await-in-loop": "warn",
"no-continue": "off",
"no-nested-ternary": "off",
"no-plusplus": "off",
"no-prototype-builtins": "warn",
"no-shadow": "warn",
"no-underscore-dangle": "off",
"no-unused-vars": "warn",
"no-undef": "warn",
"no-var": "error",
"react/prop-types": "warn",
"react/no-string-refs": "warn",
"react/no-deprecated": "warn"
},
"settings": {
"react": {
"version": "detect"
},
"import/resolver": {
"node": {
"extensions": [".js", ".json", ".ts", ".tsx"]
}
}
}
}