This repository has been archived by the owner on May 27, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
61 lines (61 loc) · 1.93 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
60
61
module.exports = {
env: {
browser: true,
node: true,
es2021: true,
"jest/globals": true
},
extends: [
"eslint:recommended",
"plugin:jsdoc/recommended",
"plugin:jest/recommended"
],
plugins: [
"jsdoc",
"jest"
],
parserOptions: {
ecmaVersion: 12,
sourceType: "module"
},
rules: {
"brace-style": ["error", "stroustrup"],
"camelcase": ["error", { "properties": "always" }],
"curly": ["error"],
"comma-style": ["error", "last"],
"default-param-last": ["error"],
"eqeqeq": ["error", "always"],
"func-call-spacing": ["error", "never"],
"func-style": ["error", "declaration", { "allowArrowFunctions": true }],
"indent": ["error"],
"key-spacing": ["error"],
"keyword-spacing": ["error", { "before": true, "after": true }],
"new-cap": ["error"],
"new-parens": ["error"],
"no-eval": ["error"],
"no-implicit-coercion": ["error"],
"no-implied-eval": ["error"],
"no-labels": ["error"],
"no-lonely-if": ["error"],
"no-param-reassign": ["error"],
"no-shadow": ["error"],
"no-tabs": ["error"],
"no-trailing-spaces": ["error"],
"no-unneeded-ternary": ["error"],
"no-var": ["error"],
"no-whitespace-before-property": ["error"],
"padded-blocks": ["error", "never"],
"prefer-rest-params": ["error"],
"quotes": ["error", "double"],
"semi": ["error", "always"],
"space-before-function-paren": ["error", "never"],
"space-in-parens": ["error", "never"],
"space-infix-ops": ["error"],
"space-unary-ops": ["error"],
"spaced-comment": ["error", "always"],
"strict": ["error"],
"switch-colon-spacing": ["error"],
"wrap-iife": ["error"],
"yoda": ["error", "never"],
}
};