-
Notifications
You must be signed in to change notification settings - Fork 0
/
edge.js
25 lines (24 loc) · 824 Bytes
/
edge.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
import globals from "globals";
import ignores from "./ignores.js";
/** @type {import("eslint").Linter.Config[]} */
export default [
{
name: "hzmi/edge",
ignores: ignores[0].ignores,
languageOptions: {
globals: {
...globals.node
}
},
rules: {
"no-restricted-globals": "off",
"n/prefer-global/buffer": ["error", "always"],
"n/prefer-global/console": ["error", "always"],
"n/prefer-global/process": ["error", "always"],
"n/prefer-global/text-decoder": ["error", "always"],
"n/prefer-global/text-encoder": ["error", "always"],
"n/prefer-global/url": ["error", "always"],
"n/prefer-global/url-search-params": ["error", "always"]
}
}
];