-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.mjs
More file actions
42 lines (42 loc) · 1.19 KB
/
Copy patheslint.config.mjs
File metadata and controls
42 lines (42 loc) · 1.19 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
export default [
{
files: ["**/*.js", "**/*.mjs"],
ignores: ["site/**"],
languageOptions: {
ecmaVersion: "latest",
globals: {
Buffer: "readonly",
console: "readonly",
process: "readonly",
},
sourceType: "module",
},
rules: {
"constructor-super": "error",
eqeqeq: ["error", "always"],
"for-direction": "error",
"getter-return": "error",
"no-async-promise-executor": "error",
"no-const-assign": "error",
"no-debugger": "error",
"no-dupe-args": "error",
"no-dupe-class-members": "error",
"no-dupe-keys": "error",
"no-duplicate-case": "error",
"no-func-assign": "error",
"no-import-assign": "error",
"no-loss-of-precision": "error",
"no-promise-executor-return": "error",
"no-self-assign": "error",
"no-unreachable": "error",
"no-unsafe-finally": "error",
"no-unused-vars": ["error", { argsIgnorePattern: "^_", varsIgnorePattern: "^_" }],
"no-useless-catch": "error",
"no-useless-escape": "error",
"no-with": "error",
"require-yield": "error",
"use-isnan": "error",
"valid-typeof": "error",
},
},
];