-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy patheslint.config.mjs
More file actions
65 lines (63 loc) · 2.04 KB
/
Copy patheslint.config.mjs
File metadata and controls
65 lines (63 loc) · 2.04 KB
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
import js from "@eslint/js";
import globals from "globals";
import prettierConfig from "eslint-config-prettier";
export default [
js.configs.recommended,
{
languageOptions: {
ecmaVersion: "latest",
sourceType: "module",
globals: {
...globals.node,
...globals.es2021,
},
},
rules: {
indent: "off",
"no-mixed-spaces-and-tabs": "off",
"linebreak-style": "off",
quotes: "off",
semi: "warn",
"no-unused-vars": "error",
"no-useless-escape": "off",
"no-extra-semi": "error",
"no-extra-boolean-cast": "off",
"space-infix-ops": ["error"],
complexity: "off",
"dot-notation": "off",
eqeqeq: ["error", "smart"],
"guard-for-in": "off",
"id-blacklist": "error",
"id-match": "error",
"max-classes-per-file": "off",
"no-bitwise": "error",
"no-caller": "error",
"no-case-declarations": "off",
"no-console": "off",
"no-eval": "error",
"no-else-return": "error",
"no-invalid-this": "off",
"no-new-wrappers": "error",
"no-process-env": "off",
"no-prototype-builtins": "off",
"no-restricted-imports": ["error"],
"no-shadow": "off",
"no-throw-literal": "error",
"no-undef-init": "error",
"no-underscore-dangle": "off",
"no-use-before-define": "off",
"object-shorthand": "error",
"one-var": ["off", "never"],
"prefer-arrow/prefer-arrow-functions": "off",
"prefer-const": "off",
"prefer-rest-params": "off",
"prefer-spread": "off",
radix: "error",
"spaced-comment": ["off", "always", { markers: ["/"] }],
...prettierConfig.rules,
},
},
{
ignores: ["node_modules/"],
},
];