-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
120 lines (120 loc) · 3.14 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
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
{
"plugins": ["html", "jsdoc"],
"env": {
"browser": true,
"node": true
},
"globals": {
"monaco": true
},
"extends": "airbnb-base",
"rules": {
"linebreak-style": 0,
"indent": [
"error",
4
],
"no-new": 0,
"no-use-before-define": [
"error",
{
"functions": false
}
],
"prefer-destructuring": 0,
"import/no-extraneous-dependencies": [
"warn",
{
"devDependencies": true
}
],
"no-restricted-syntax": 0,
"no-restricted-properties": 1,
"complexity": ["warn", 20],
"curly": ["warn", "all"],
"dot-location": ["warn", "property"],
"dot-notation": "warn",
"eqeqeq": ["warn", "always"],
"no-multi-spaces": "warn",
"array-bracket-spacing": ["error", "never"],
"block-spacing": ["error", "always"],
"brace-style": ["error", "1tbs"],
"camelcase": ["warn", { "properties": "always" }],
"comma-spacing": ["warn", { "after": true }],
"comma-style": ["warn", "last"],
"computed-property-spacing": ["warn", "never"],
"consistent-this": ["error", "self"],
"func-call-spacing": ["error", "never"],
"keyword-spacing": ["warn", { "after": true }],
"max-depth": ["warn", { "max": 4 }],
"max-len": [
"warn",
{
"code": 200,
"ignoreTrailingComments": true,
"ignoreUrls": true
}
],
"max-nested-callbacks": ["warn", { "max": 5 }],
"no-multiple-empty-lines": ["warn", { "max": 2 }],
"no-trailing-spaces": ["error", { "skipBlankLines": false }],
"no-unneeded-ternary": ["warn", { "defaultAssignment": true }],
"no-whitespace-before-property": "error",
"object-curly-spacing": ["warn", "never"],
"require-jsdoc": [
"warn",
{
"require": {
"FunctionDeclaration": true,
"MethodDefinition": true,
"ClassDeclaration": true
}
}
],
"require-jsdoc": 0,
"no-plusplus": 0,
"no-lonely-if": 1,
"class-methods-use-this": 1,
"consistent-this": 1,
"func-names": 0,
"no-shadow": 0,
"one-var": 0,
"no-continue": 1,
"no-useless-escape": 1,
"no-bitwise": 0,
"no-cond-assign": 1,
"eqeqeq": 0,
"prefer-const": 1,
"one-var-declaration-per-line": ["error", "initializations"],
"consistent-this": ["error", "me"],
"object-curly-newline": 0,
"spaced-comment": [
"error",
"always",
{
"line": {
"markers": ["/"],
"exceptions": ["-", "+"]
},
"block": {
"markers": ["!"],
"exceptions": ["*"],
"balanced": true
}
}
],
"semi-spacing": ["error", { "before": false, "after": true }],
"space-before-function-paren": ["error", "never"],
"space-in-parens": ["error", "never"],
"no-param-reassign": 0,
"jsdoc/check-param-names": 1,
"jsdoc/check-tag-names": 1,
"jsdoc/newline-after-description": ["warn", "never"],
"jsdoc/require-description-complete-sentence": 1,
"jsdoc/require-param": 1,
"jsdoc/require-param-type": 1,
"jsdoc/require-returns-type": 1,
"no-underscore-dangle": 0,
"arrow-body-style": 0
}
}