-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.json
43 lines (43 loc) · 941 Bytes
/
.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
{
"extends": "google",
"parser": "babel-eslint",
"plugins": [
"react"
],
"env": {
"browser": true,
"jquery": true
},
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"globalReturn": false
}
},
"rules": {
"extends": ["eslint:recommended", "plugin:react/recommended", "google"],
"max-len": [1, 80, 2, {"ignoreComments": true}],
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"prefer-rest-params": "warn",
"array-callback-return": 0,
"require-jsdoc": "warn",
"no-implicit-globals": 0,
"no-invalid-this": 0,
"no-alert": 0,
"new-cap": ["error", {
"capIsNewExceptions": ["DynamicTable"]
}],
"no-console": ["warn", {
"allow": ["info", "warn", "error"]
}]
},
"globals": {
"React": true,
"ReactDOM": true,
"loris": true,
"QueryString": true,
"swal": true
}
}