-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.eslintrc.js
59 lines (57 loc) · 1.49 KB
/
.eslintrc.js
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
module.exports = {
"root": true,
"parser": '@typescript-eslint/parser',
"plugins": [
'@typescript-eslint',
],
"extends": [
'airbnb-typescript/base',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking'
],
"parserOptions": {
"project": './tsconfig.json'
},
"rules": {
"semi": "off",
"@typescript-eslint/semi": ["error", "never"],
"guard-for-in": 2,
"no-invalid-this": 2,
"radix": [2, "always"],
"no-multi-spaces": ["error", {
"ignoreEOLComments": true
}],
"camelcase": [ 2, {
"allow": [
"max_wrong_lines",
"can_indent",
"executable_code",
"feedback_cb",
"x_indent",
"exec_limit",
"unittest_code_prepend",
"show_feedback"
]
}],
"comma-dangle": [2, "only-multiline"],
"indent": ["error", 2, {
"MemberExpression": "off",
"SwitchCase": 1
}],
"max-len": ["error", {"code": 120}],
"linebreak-style": 2,
"no-multiple-empty-lines": 0,
"space-before-function-paren": [2, {"anonymous": "always", "named": "never"}],
"quote-props": [2, "as-needed"],
"arrow-body-style": [2, "as-needed", { "requireReturnForObjectLiteral": true }],
"no-var": 2,
"prefer-const": ["error", {
"destructuring": "any"
}],
"prefer-rest-params": 2,
"prefer-spread": 2,
"prefer-template": 2,
"import/first": 0,
}
};