-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
111 lines (111 loc) · 2.03 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
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
{
"env": {
"browser": true,
"commonjs": true,
"es6": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended"
],
"globals": {
"API_ROOT": true,
"STATIC_URL": true,
"APP_NAME": true
},
"parser": "babel-eslint",
"plugins": [
"react"
],
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"impliedStrict": true,
"jsx": true
}
},
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"@typescript-eslint/camelcase": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"no-array-constructor": 2,
"no-bitwise": 2,
"no-cond-assign": 2,
"no-console": [
2,
{
"allow": [
"warn",
"error"
]
}
],
"no-constant-condition": 2,
"no-eval": 2,
"no-implied-eval": 2,
"no-lonely-if": 2,
"no-unsafe-negation": 2,
"no-nested-ternary": 2,
"no-unused-vars": [
2,
{
"vars": "all",
"args": "none",
"varsIgnorePattern": "^React$|^_|^PropTypes$"
}
],
"react/prop-types": 1,
"eqeqeq": [
2,
"smart"
],
"use-isnan": 2
},
"overrides": [
{
"files": [
"**/*.ts",
"**/*.tsx"
],
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
]
},
{
"files": [
"**/*Spec.ts",
"**/*Spec.tsx",
"**/*.spec.ts",
"**/*.spec.tsx",
"**/*Spec.js",
"spec/**"
],
"env": {
"jasmine": true
},
"rules": {
"@typescript-eslint/ban-ts-ignore": 0,
"@typescript-eslint/no-use-before-define": 0,
"@typescript-eslint/no-non-null-assertion": 0,
"no-empty": 0,
"no-unused-vars": 1,
"react/no-find-dom-node": 0
}
},
{
"files": [
"babel.config.js"
],
"env": {
"node": true
}
}
]
}