This repository has been archived by the owner on May 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc
executable file
·102 lines (100 loc) · 2.66 KB
/
.eslintrc
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
{
"plugins": [
"jsdoc"
],
"env": {
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 8
},
"globals": {
"global": false
},
"rules": {
"no-console": 0,
"strict": ["error", "global"],
"indent": ["error","tab",{"SwitchCase": 1}],
"linebreak-style": ["error","unix"],
"quotes": ["error","single"],
"semi": ["error","always"],
"valid-jsdoc": ["error"],
"comma-dangle": ["error","always-multiline"],
"comma-spacing": ["error", { "before": false, "after": true }],
"camelcase": ["error", { "properties": "never" }],
"comma-style": ["error","last"],
"func-names": ["error", "always"],
"func-name-matching": ["error", "always"],
"keyword-spacing": ["error", { "before": true, "after": true }],
"new-parens": "error",
"object-curly-newline": ["error", { "multiline": true, "consistent": true, "minProperties": 2 }],
"space-in-parens": ["error", "always", {"exceptions": ["{}", "[]", "()", "empty"]}],
"space-before-function-paren": ["error", "never"],
"key-spacing": ["error", { "align": "value" }],
"object-property-newline": ["error"],
"array-bracket-spacing": ["error", "always", { "objectsInArrays": false, "arraysInArrays": false }],
"eqeqeq": ["error", "smart"],
"yoda": ["error", "always", { "onlyEquality": true }],
"block-spacing": "error",
"brace-style": ["error", "1tbs"],
"eol-last": ["error", "always"],
"no-lonely-if": "error",
"curly": "error",
"space-before-blocks": "error",
"require-jsdoc": [
"error",
{
"require": {
"FunctionDeclaration": true,
"MethodDefinition": true,
"ClassDeclaration": true,
"ArrowFunctionExpression": false
}
}
],
"prefer-template": "error",
"no-useless-concat": "error",
"template-curly-spacing": ["error", "always"],
"space-infix-ops": "error",
"space-unary-ops": [
2,
{
"words": true,
"nonwords": false
}
],
"one-var": ["error", "never"],
"jsdoc/check-param-names": 1,
"jsdoc/check-tag-names": 1,
"jsdoc/check-types": 1,
"jsdoc/newline-after-description": 1,
"jsdoc/require-description-complete-sentence": 1,
"jsdoc/require-hyphen-before-param-description": 1,
"jsdoc/require-param": 1,
"jsdoc/require-param-description": 1,
"jsdoc/require-param-type": 1,
"jsdoc/require-returns-description": 1,
"jsdoc/require-returns-type": 1
},
"settings": {
"jsdoc": {
"tagNamePreference": {
"augments": "extends",
"function": "method"
},
"additionalTagNames": {
"closureTags": true,
"customTags": ["async"]
}
}
},
"overrides": [
{
"files": [ "bin/*.js", "lib/*.js" ],
"excludedFiles": "*.test.js"
}
]
}