-
-
Notifications
You must be signed in to change notification settings - Fork 668
Expand file tree
/
Copy patheslint.config.mjs
More file actions
39 lines (38 loc) · 1.2 KB
/
eslint.config.mjs
File metadata and controls
39 lines (38 loc) · 1.2 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
import { defineConfig, globalIgnores } from "eslint/config";
import config from "eslint-config-webpack";
import configs from "eslint-config-webpack/configs.js";
export default defineConfig([
globalIgnores([
"packages/*/lib/**/*",
"test/**/create-webpack-app-testing/**/*",
"test/**/dist/**/*",
"test/**/bin/**/*",
"test/**/binary/**/*",
"test/**/index.js",
"test/build/config/error-commonjs/syntax-error.js",
"test/build/config/error-mjs/syntax-error.mjs",
"test/build/config/error-array/webpack.config.js",
"test/build/config-format/esm-require-await/webpack.config.js",
"test/configtest/with-config-path/syntax-error.config.js",
"test/build/config-format/auto/webpack.config.js",
]),
{
extends: [config],
ignores: ["./packages/create-webpack-app/**/*"],
rules: {
// We are CLI, so using `console.log` is normal
"no-console": "off",
strict: "off",
"n/no-process-exit": "off",
},
},
{
files: ["./packages/create-webpack-app/**/*"],
extends: [configs["recommended-module"]],
rules: {
// We are CLI, so using `console.log` is normal
"no-console": "off",
"n/no-process-exit": "off",
},
},
]);