-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc
48 lines (37 loc) · 1.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
{
"root": true,
"plugins": [
"prettier"
],
"extends": [
"eslint:recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2017
},
"env": {
"browser": true,
"node": true,
"es6": true,
"jasmine": true
},
"rules": {
"prettier/prettier": 2 ,
"no-use-before-define": ["error", { "functions": true, "classes": true }],
"no-var": "error",
"vars-on-top": "error",
"prefer-const": "error",
"camelcase": "warn",
"comma-spacing": [ "warn", { "before": false, "after": true } ],
"comma-style": [ "warn", "last" ],
"semi": [ "error", "always" ],
"semi-spacing": [ "warn", { "before": false, "after": true }],
"quotes": [ "warn", "single" ],
"no-unused-expressions": "error",
"arrow-body-style": [ "error", "always" ],
"arrow-parens": [ "error", "always" ],
"arrow-spacing": [ "error", { "before": true, "after": true }]
}
}