-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy patheslint.json
98 lines (98 loc) · 2.2 KB
/
eslint.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
{
"extends": ["eslint:recommended"],
"plugins": ["jsdoc"],
"rules": {
"brace-style": "error",
"camelcase": "error",
"comma-spacing": [
"error",
{
"before": false,
"after": true
}
],
"curly": "error",
"eol-last": ["error", "always"],
"eqeqeq": ["error", "always"],
"indent": [
"error",
2,
{
"SwitchCase": 1
}
],
"jsdoc/check-param-names": "error",
"jsdoc/check-tag-names": "error",
"jsdoc/newline-after-description": "error",
"jsdoc/require-description-complete-sentence": "error",
"jsdoc/require-param": "error",
"jsdoc/require-param-name": "error",
"jsdoc/require-param-type": "error",
"jsdoc/valid-types": "error",
"key-spacing": "error",
"linebreak-style": ["error", "unix"],
"newline-before-return": "error",
"no-await-in-loop": "error",
"no-console": [
"error",
{
"allow": ["warn", "error"]
}
],
"no-multi-spaces": "error",
"no-return-await": "error",
"no-unused-vars": [
"error",
{
"argsIgnorePattern": "next"
}
],
"no-var": "error",
"object-curly-spacing": ["error", "always"],
"padding-line-between-statements": [
"error",
{
"blankLine": "always",
"prev": ["const", "let", "var"],
"next": "*"
},
{
"blankLine": "any",
"prev": ["const", "let", "var"],
"next": ["const", "let", "var"]
}
],
"prefer-const": [
"error",
{
"destructuring": "any",
"ignoreReadBeforeAssign": false
}
],
"quotes": [
"error",
"single",
{
"allowTemplateLiterals": true,
"avoidEscape": true
}
],
"require-await": "error",
"require-jsdoc": [
"error",
{
"require": {
"FunctionDeclaration": true,
"MethodDefinition": true,
"ClassDeclaration": true,
"ArrowFunctionExpression": false,
"FunctionExpression": false
}
}
],
"semi": ["error", "always"],
"space-before-blocks": "error",
"spaced-comment": ["error", "always"],
"space-infix-ops": "error"
}
}