-
Notifications
You must be signed in to change notification settings - Fork 20
/
.eslintrc.json
92 lines (92 loc) · 2.39 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
{
"root": true,
"extends": "airbnb",
"plugins": ["eslint-plugin-jsdoc"],
"env": {
"node": true,
"mocha": true
},
"rules": {
"semi": [2, "never"],
"quote-props": 0,
"camelcase": 0,
"func-names": 0,
"no-param-reassign": "off",
"no-prototype-builtins": "off",
"radix": "off",
"no-console": "off",
"indent": [ "error", 2 ],
"require-jsdoc": "off",
"valid-jsdoc": [ "error", {
"prefer": {
"arg": "param",
"return": "returns"
},
"preferType": {
"Boolean": "boolean",
"Number": "number",
"String": "string",
"object": "Object",
"array": "Array",
"date": "Date",
"regexp": "RegExp",
"Regexp": "RegExp",
"promise": "Promise"
},
"requireReturn": true
}],
"jsdoc/check-param-names": "error",
"jsdoc/check-tag-names": "error",
"jsdoc/check-types": "off",
"jsdoc/newline-after-description": "error",
"jsdoc/require-description-complete-sentence": "off",
"jsdoc/require-example": "off",
"jsdoc/require-hyphen-before-param-description": "error",
"jsdoc/require-param": "error",
"jsdoc/require-param-description": "error",
"jsdoc/require-param-name": "error",
"jsdoc/require-param-type": "error",
"jsdoc/require-returns-description": "error",
"jsdoc/require-returns-type": "error",
"generator-star-spacing": "off",
"import/no-extraneous-dependencies": "off",
"import/newline-after-import": "off",
"class-methods-use-this": "off",
"no-warning-comments": "off",
"no-unused-vars": [
"error",
{ "argsIgnorePattern": "^_" }
],
"no-useless-escape": "off",
"spaced-comment": "off",
"require-yield": "off",
"prefer-template": "warn",
"prefer-promise-reject-errors": "off",
"no-underscore-dangle": "off",
"comma-dangle": [
"warn",
"never"
],
"strict": "off",
"guard-for-in": "off",
"object-shorthand": "off",
"space-before-function-paren": [
"error",
{
"anonymous": "always",
"named": "never",
"asyncArrow": "always"
}
],
"max-len": [
2,
{
"code": 100,
"ignorePattern": "(https?:|JSON\\.parse|[Uu]rl =)"
}
],
"arrow-parens": ["error", "always"],
"prefer-destructuring": "off",
"function-paren-newline": ["error", "consistent"]
}
}