-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy patheslint.config.mjs
49 lines (48 loc) · 1.29 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
38
39
40
41
42
43
44
45
46
47
48
49
import eslintConfigNext from "@next-core/eslint-config-next";
import nodeConfig from "@next-core/eslint-config-next/node.js";
import globals from "globals";
export default [
{
ignores: ["**/node_modules", "**/dist", "sdk"],
},
...eslintConfigNext,
{
files: [
"cypress/plugins/**/*.js",
"packages/brick-container/serve/**/*.js",
"packages/eslint-config-next/*.js",
"packages/babel-preset-next/*.js",
"packages/babel-preset-prismjs/*.js",
"packages/browserslist-config-next/*.js",
"packages/build-next-libs/**/*.js",
"packages/build-next-bricks/**/*.js",
"packages/test-next/**/*.js",
"packages/brick-playground/serve/**/*.js",
"packages/create-api-sdk/**/*.{ts,js}",
"packages/webpack/**/*.{ts,js}",
"packages/doc-helpers/**/*.js",
"packages/serve-helpers/**/*.js",
"packages/yo/**/*.js",
"v3/lodash-v3/**/*.js",
"v3/moment-v3/**/*.js",
],
...nodeConfig,
},
{
files: ["cypress/**/*.js"],
...nodeConfig,
},
{
files: ["cypress/**/*.js"],
languageOptions: {
globals: {
...Object.fromEntries(
Object.entries(globals.jest).map(([key]) => [key, "off"])
),
...globals.mocha,
cy: false,
Cypress: false,
},
},
},
];