-
Notifications
You must be signed in to change notification settings - Fork 36
/
.eslintrc.json
46 lines (46 loc) · 995 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
44
45
46
{
"env": {
"browser": true,
"node": true,
"jest": true,
"es6": true
},
"globals": {
"_": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 7,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"plugins": ["react", "@typescript-eslint"],
"extends": ["eslint:recommended", "plugin:react/recommended", "plugin:@typescript-eslint/recommended"],
"settings": {
"react": {
"pragma": "React",
"version": "16.6.3"
}
},
"overrides": [
{
"files": ["*.js"],
"rules": {
"@typescript-eslint/no-var-requires": "off"
}
}
],
"rules": {
"eqeqeq": [2, "always"],
"no-console": ["error", { "allow": ["log", "warn", "error"] }],
"no-debugger": 2,
"no-var": 1,
"quotes": [2, "single"],
"semi": [2, "always"],
"space-before-function-paren": ["off"],
"max-len": ["error", { "code": 120 }],
"comma-dangle": ["off"]
}
}