-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
65 lines (64 loc) · 2 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
62
63
64
65
module.exports = {
env: {
node: true,
browser: true,
commonjs: true,
es2020: true,
jest: true,
},
extends: ["eslint:recommended", "google"],
parserOptions: {
ecmaVersion: 11,
},
rules: {
"indent": ["error", 4],
"linebreak-style": ["error", "unix"],
"quotes": ["off", "double"],
"semi": ["error", "always"],
"no-mixed-spaces-and-tabs": ["error"],
"no-useless-escape": ["warn"],
"no-console": ["off"],
"no-unused-vars": ["error"],
"no-redeclare": ["error"],
"no-octal": ["error"],
"no-array-constructor": ["error"],
"no-new-object": ["error"],
"arrow-spacing": ["error"],
"constructor-super": ["error"],
"no-new-require": ["error"],
"no-shadow-restricted-names": ["error"],
"no-useless-catch": ["error"],
"no-useless-call": ["error"],
"no-mixed-operators": [
"error",
{
groups: [
["&", "|", "^", "~", "<<", ">>", ">>>"],
["&&", "||"],
],
},
],
"no-return-await": ["error"],
"no-return-assign": ["error", "except-parens"],
"no-empty": ["warn"],
"no-trailing-spaces": ["error"],
"no-new-wrappers": ["error"],
"no-lone-blocks": ["error"],
"no-async-promise-executor": ["error"],
"no-self-compare": ["error"],
"no-sequences": ["error"],
"no-useless-rename": ["error"],
"no-useless-concat": ["error"],
"no-useless-computed-key": ["error"],
"callback-return": [
"error",
["callback", "cb", "next", "done", "reject", "resolve"],
],
"no-use-before-define": [
"error",
{ functions: false, classes: true, variables: true },
],
"no-restricted-modules": ["error", "crypto"],
'object-curly-spacing': ['error', 'always'],
},
};