-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheslint.config.js
More file actions
46 lines (45 loc) · 1.23 KB
/
eslint.config.js
File metadata and controls
46 lines (45 loc) · 1.23 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
const js = require("@eslint/js");
const nodePlugin = require("eslint-plugin-n");
const importPlugin = require("eslint-plugin-import");
const promisePlugin = require("eslint-plugin-promise");
const prettierConfig = require("eslint-config-prettier");
const globals = require("globals");
module.exports = [
{
ignores: [
".makefiles/**",
"artifacts/**",
"node_modules/**",
"test/integration/**",
],
},
js.configs.recommended,
nodePlugin.configs["flat/recommended-script"],
importPlugin.flatConfigs.recommended,
promisePlugin.configs["flat/recommended"],
prettierConfig,
{
languageOptions: {
sourceType: "module",
globals: {
...globals.es2022,
...globals.node,
},
},
rules: {
"no-unused-vars": [
"error",
{
// allow unused args if they start with _
argsIgnorePattern: "^_",
},
],
// handled by import/no-unresolved
"n/no-missing-import": "off",
// don't check for unsupported features - too much config to make this work
"n/no-unsupported-features/es-builtins": "off",
"n/no-unsupported-features/es-syntax": "off",
"n/no-unsupported-features/node-builtins": "off",
},
},
];