-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy patheslint.config.mjs
37 lines (36 loc) · 1.04 KB
/
eslint.config.mjs
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
import { eslintConfigRelax } from "@jsenv/eslint-config-relax";
export default [
...eslintConfigRelax({
rootDirectoryUrl: new URL("./", import.meta.url),
browserFiles: [
"docs/**/*.js",
"tests/dev_server/errors/stories/**/*.js",
"tests/dev_server/**/fixtures/**/*.js",
// Needs to be explicitely configured as browser until https://github.com/eslint/eslint/pull/18742
"packages/related/cli/template-web/src/**/*.js",
"packages/related/cli/template-web-components/src/**/*.js",
"packages/related/cli/template-web-preact/src/**/*",
"packages/related/cli/template-web-react/src/**/*",
"packages/**/frontend/**/*.js",
],
browserAndNodeFiles: [
"packages/**/universal/**/*.js",
"packages/**/assert/**/*.js",
],
jsxPragmaAuto: true,
}),
{
rules: {
"no-debugger": ["off"],
},
},
{
ignores: [
"**/async-to-promises.js",
"**/regenerator_runtime.js",
"**/neuquant.js",
"**/babel_helpers/",
"experiments/",
],
},
];