-
-
Notifications
You must be signed in to change notification settings - Fork 85
/
.eslintrc
74 lines (74 loc) · 2.47 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
{
"extends": [
"airbnb-base",
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
// "plugin:@typescript-eslint/recommended-requiring-type-checking",
"airbnb-typescript-base"
],
"parserOptions": {
"ecmaVersion": 2019,
"sourceType": "module",
"project": "./tsconfig.json"
},
"env": {
"browser": true,
"node": true,
"es6": true
},
"globals": {
"ENV": "readonly"
},
"rules": {
"camelcase": "off",
"comma-dangle": [ "error", "always-multiline" ],
"curly": "error",
"eqeqeq": "error",
"guard-for-in": "error",
"new-cap": "error",
"no-caller": "error",
"no-empty": "warn",
"no-extra-boolean-cast": "warn",
"no-multi-spaces": "error",
"no-new": "error",
"no-plusplus": "off",
"no-trailing-spaces": "error",
"no-underscore-dangle": "off",
"no-unused-expressions": "error",
"no-use-before-define": "warn",
"quotes": [ "error", "single" ],
"strict": "off",
"wrap-iife": [ "error", "outside" ],
"import/no-named-as-default": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/prefer-namespace-keyword": "off",
// STYLE
"brace-style": ["error", "1tbs"],
"comma-spacing": ["error", { "before": false, "after": true }],
"comma-style": ["error", "last"],
"consistent-return": "error",
"consistent-this": ["warn", "self"],
"dot-notation": "error",
"eol-last": "error",
"func-call-spacing": [ "error", "never" ],
"indent": ["error", 4, { "SwitchCase": 1 }],
"@typescript-eslint/indent": ["error", 4],
"key-spacing": ["warn", { "beforeColon": false, "afterColon": true }],
"keyword-spacing": [ "error", { "after": true }],
"max-len" : ["warn", 120],
"max-params": ["error", 7],
"new-parens": "error",
"no-array-constructor": "error",
"no-mixed-spaces-and-tabs": "error",
"no-multiple-empty-lines": "error",
"no-shadow": "error",
"no-undef": "error",
"padded-blocks": ["error", "never"],
"semi-spacing": "error",
"semi": ["error", "always"],
"space-infix-ops": "error",
"yoda": "error",
"linebreak-style": "off"
}
}