-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc.js
44 lines (44 loc) · 1.18 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
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
},
extends: ["eslint:recommended", "prettier"],
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
rules: {
"arrow-body-style": ["error", "as-needed"],
"constructor-super": "error",
curly: ["error", "all"],
"dot-notation": "error",
eqeqeq: "error",
"max-classes-per-file": ["error", 1],
"no-const-assign": "error",
"no-dupe-class-members": "error",
"no-dupe-keys": "error",
"no-duplicate-case": "error",
"no-else-return": "error",
"no-empty": "error",
"no-invalid-this": "error",
"no-irregular-whitespace": "error",
"no-new-func": "error",
"no-proto": "error",
"no-redeclare": "error",
"no-return-await": "warn",
"no-this-before-super": "error",
"no-undef": "off",
"no-unreachable": "error",
"no-unsafe-negation": "error",
"no-unused-vars": "off",
"no-var": "error",
"prefer-arrow-callback": "error",
"prefer-const": ["error", { destructuring: "all" }],
"prefer-object-spread": "error",
"prefer-rest-params": "error",
"prefer-template": "error",
"valid-typeof": "error",
},
};