-
Notifications
You must be signed in to change notification settings - Fork 1
/
eslint.config.js
50 lines (49 loc) · 1.27 KB
/
eslint.config.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
import globals from "globals";
import pluginJs from "@eslint/js";
export default [
{ languageOptions: { globals: globals.browser } },
pluginJs.configs.all,
{
rules: {
"max-lines-per-function": "off",
"sort-keys": "off",
"sort-vars": "off",
"one-var": "off",
"max-statements": "off",
"no-magic-numbers": "off",
"id-length": "off",
"no-inline-comments": "off",
"max-lines": "off",
"capitalized-comments": "off",
"no-warning-comments": "off",
"no-ternary": "off",
"class-methods-use-this": "error",
"func-names": "warn",
"func-style": ["error", "declaration"],
"new-cap": "error",
"no-console": "warn",
"no-invalid-this": "error",
"no-new-func": "error",
"no-process-exit": "warn",
"no-undef": "warn",
"no-unused-vars": "warn",
"prefer-const": "error",
"prefer-destructuring": [
"error",
{ array: true, object: true },
{ enforceForRenamedProperties: false },
],
"no-var": "error",
"prefer-arrow-callback": "warn",
"prefer-rest-params": "warn",
"arrow-parens": ["error", "always"],
"arrow-body-style": ["error", "as-needed"],
"no-eval": "error",
"no-implied-eval": "error",
eqeqeq: "error",
"no-with": "error",
"no-plusplus": "error",
strict: ["error", "global"],
},
},
];