-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
87 lines (87 loc) · 1.57 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
{
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"react",
"html",
],
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"classes": true,
"jsx": true,
"forOf": false
},
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/eslint-recommended",
],
"rules": {
"react/jsx-uses-vars": 1,
"guard-for-in": 0,
"no-mixed-spaces-and-tabs": 0,
"no-console": 0,
"no-alert": 0,
"no-bitwise": [
0,
{
"allow": [
"~" // Allow ~str.indexOf()
]
}
],
"camelcase": 0,
"eqeqeq": 0,
"no-debugger": 1,
"no-extra-semi": 1,
"comma-dangle": 0,
"no-empty": 0,
"no-unused-vars": [
1,
{
"args": "none", // Don"t check function arguments.
"varsIgnorePattern": "React|log|gup" // Allow unused React, log gup variables.
}
],
"indent": [
"warn",
2,
{
"ignoreComments": true,
"MemberExpression": 0,
"SwitchCase": 1,
}
],
"key-spacing": [
"warn",
{
"mode": "minimum"
}
],
"no-multiple-empty-lines": [
1,
{
"max": 6
}
]
},
"globals": {
"navigator": false,
"gapi": false,
"google": false,
"drift": false,
"gtag": false,
"Stripe": false,
"nolt": false,
"TrackJS": false,
},
"env": {
"browser": true,
"es6": true,
"node": true,
"jest": true
}
}