-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy patheslint.config.js
More file actions
44 lines (41 loc) · 896 Bytes
/
Copy patheslint.config.js
File metadata and controls
44 lines (41 loc) · 896 Bytes
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
import js from "@eslint/js";
const browserGlobals = {
AbortController: "readonly",
clearTimeout: "readonly",
chrome: "readonly",
console: "readonly",
document: "readonly",
fetch: "readonly",
globalThis: "readonly",
location: "readonly",
navigator: "readonly",
setInterval: "readonly",
setTimeout: "readonly",
URL: "readonly",
URLSearchParams: "readonly",
window: "readonly",
};
const nodeGlobals = {
Buffer: "readonly",
process: "readonly",
};
export default [
{
ignores: ["dist/**", "node_modules/**", "coverage/**", "*.zip"],
},
js.configs.recommended,
{
files: ["**/*.js", "**/*.mjs"],
languageOptions: {
ecmaVersion: "latest",
sourceType: "module",
globals: {
...browserGlobals,
...nodeGlobals,
},
},
rules: {
"no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
},
},
];