-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.template.json
131 lines (131 loc) · 2.5 KB
/
.eslintrc.template.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
{
"extends": [
"eslint:recommended",
"plugin:security/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"rules": {
"no-use-before-define": 0,
"require-jsdoc": 0,
"comma-dangle": [
"error",
"never"
],
"space-before-function-paren": [
"error",
"always"
],
"guard-for-in": 0,
"no-extra-parens": 0,
"padded-blocks": 0,
"@typescript-eslint/no-use-before-define": 0,
"indent": [
"error",
4,
{
"SwitchCase": 1
}
],
"no-prototype-builtins": 1,
"no-template-curly-in-string": 1,
"array-callback-return": 1,
"block-scoped-var": 1,
"no-alert": 1,
"no-caller": 1,
"curly": 1,
"dot-notation": 1,
"eqeqeq": 1,
"no-eq-null": 1,
"no-eval": 1,
"no-extend-native": 1,
"no-extra-bind": 1,
"no-floating-decimal": 1,
"no-implicit-globals": 1,
"no-implied-eval": 1,
"no-invalid-this": 1,
"no-iterator": 1,
"no-lone-blocks": 1,
"no-multi-spaces": 1,
"no-var": 1,
"arrow-parens": 1,
"eol-last": [
"error",
"always"
],
"quotes": [
"error",
"single",
{
"avoidEscape": true,
"allowTemplateLiterals": true
}
],
"max-len": [
"error",
{
"code": 120,
"tabWidth": 4,
"ignoreComments": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true
}
],
"no-tabs": 1,
"no-console": [
"error"
],
"no-useless-return": 1,
"no-else-return": 1,
"camelcase": 1,
"comma-spacing": 1,
"strict": 1,
"no-trailing-spaces": 1,
"one-var": [
"error",
"never"
],
"semi": [
"error",
"always",
{
"omitLastInOneLineBlock": true
}
],
"no-empty-function": 1,
"no-loop-func": 1,
"arrow-body-style": [
"error",
"as-needed",
{
"requireReturnForObjectLiteral": true
}
],
"object-curly-spacing": [
"error",
"always"
],
"no-multiple-empty-lines": [
"error",
{
"max": 2,
"maxEOF": 1
}
]
},
"env": {
"es6": true,
"node": true,
"mocha": true
},
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"security"
],
"parserOptions": {
"ecmaVersion": 8,
"project": "./tsconfig.json"
}
}