-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
68 lines (66 loc) · 1.82 KB
/
index.js
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
module.exports = {
"env": {
"browser": true,
"es6": true
},
"plugins": [
"react"
],
"extends": ["eslint:recommended", "plugin:react/recommended"],
"globals": {
"process": true,
"$": true,
"L": true,
"module": true,
"require": true,
"Promise": true,
"env": true,
"stripe": true,
"Rails": true
},
"rules": {
"indent": ["warn", 2, { "SwitchCase": 1 }],
"quotes": ["error", "double"],
"semi": ["error", "always"],
"no-unused-vars": ["error", { "vars": "all", "args": "none" }],
"no-console": ["error", { "allow": ["warn", "error"] }],
"no-mixed-spaces-and-tabs": "warn",
"no-implicit-globals": "error",
"eqeqeq": "error",
"no-var": "error",
"max-lines": ["error", { "max": 200, "skipBlankLines": true }],
"no-unneeded-ternary": "error",
"array-callback-return": "error",
"block-scoped-var": "error",
"complexity": "error",
"consistent-return": "error",
"no-alert": "error",
"no-empty-function": "error",
"no-return-await": "error",
"no-script-url": "error",
"no-warning-comments": "warn",
"require-await": "error",
"no-multi-spaces": "warn",
"no-trailing-spaces": "error",
"no-useless-computed-key": "error",
"require-atomic-updates": "error",
"react/prop-types": "off",
"react/jsx-no-useless-fragment": "error",
"react/jsx-closing-tag-location": "error",
"react/jsx-indent-props": ["error", 2],
"react/jsx-indent": ["error", 2],
"react/prefer-stateless-function": "error",
},
"settings": {
"react": {
"version": "detect"
}
},
"parserOptions": {
"ecmaVersion": 2019,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
}
};