-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
83 lines (80 loc) · 2.26 KB
/
.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
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
{
"parserOptions": {
"ecmaVersion": 8,
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"sourceType": "module"
},
"env": {
"es6": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"import",
"node",
"promise"
],
"extends": [
//"airbnb-base",
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"yoda": 1,
"no-multi-str": 1,
"comma-spacing": 1,
"no-tabs": 1,
"no-var": 2,
"require-jsdoc": 1,
"camelcase": 2,
"comma-style": [1, "last"],
"no-lonely-if": 2,
"no-const-assign": 2,
"no-dupe-args": 2,
"no-duplicate-imports": 2,
"indent": "off",
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/ban-types": ["error",
{
"types": {
"String": false,
"Boolean": false,
"Number": false,
"Symbol": false,
"{}": false,
"Object": false,
"object": false,
"Function": false
},
"extendDefaults": true
}
],
"eol-last": 0,
"no-multiple-empty-lines": "off",
"semi":"off",
"no-await-in-loop":"off",
"nonblock-statement-body-position":"warn",
"max-len":"off",
"comma-dangle": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-inferrable-types": "off",
"ban-ts-comment": "off",
"prefer-const": "off",
"import/export": "error",
"import/first": "error",
"import/no-duplicates": "error",
"import/no-webpack-loader-syntax": "error",
"node/no-deprecated-api": "error",
"node/process-exit-as-throw": "error",
"@typescript-eslint/explicit-module-boundary-types": "off"
}
}// For additional reference
// https://eslint.org/docs/rules/
//"off" or 0 - turn the rule off
//"warn" or 1 - turn the rule on as a warning (doesn’t affect exit code)
//"error" or 2 - turn the rule on as an error (exit code will be 1)