Skip to content

Commit 6977b2f

Browse files
committed
ci: optimize Next.js linting
Signed-off-by: Jan Pokorný <[email protected]>
1 parent 512c0a0 commit 6977b2f

File tree

4 files changed

+21
-8
lines changed

4 files changed

+21
-8
lines changed

apps/beeai-ui/next.config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,13 @@ const nextConfig: NextConfig = {
8080
// https://github.com/vercel/next.js/issues/64921
8181
cssChunking: false,
8282
},
83+
// Skip check & lint -- already done by Mise
84+
typescript: {
85+
ignoreBuildErrors: true,
86+
},
87+
eslint: {
88+
ignoreDuringBuilds: true,
89+
},
8390
};
8491

8592
export default nextConfig;

apps/beeai-ui/tasks.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ run = "pnpm next build"
8686
sources = ["*.json", "*.js", "*.mjs", "*.ts", "public/**/*", "src/**/*"]
8787
outputs = { auto = true }
8888

89+
["beeai-ui:build:check"]
90+
depends = ["beeai-ui:check:eslint", "beeai-ui:check:tsc"]
91+
8992
# schema
9093

9194
["beeai-ui:schema:generate"]

apps/beeai-web/next.config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,13 @@ const nextConfig: NextConfig = {
8080
// https://github.com/vercel/next.js/issues/64921
8181
cssChunking: false,
8282
},
83+
// Skip check & lint -- already done by Mise
84+
typescript: {
85+
ignoreBuildErrors: true,
86+
},
87+
eslint: {
88+
ignoreDuringBuilds: true,
89+
},
8390
};
8491

8592
export default nextConfig;

apps/beeai-web/tasks.toml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,6 @@
33
["beeai-web:check"]
44
depends = ["beeai-web:check:*"]
55

6-
["beeai-web:check:next"]
7-
depends = ["common:setup:pnpm"]
8-
dir = "{{config_root}}/apps/beeai-web"
9-
run = "pnpm next lint"
10-
sources = ["src/**/*.js", "src/**/*.jsx", "src/**/*.ts", "src/**/*.tsx"]
11-
outputs = { auto = true }
12-
136
["beeai-web:check:prettier"]
147
depends = ["common:setup:pnpm"]
158
dir = "{{config_root}}/apps/beeai-web"
@@ -25,7 +18,7 @@ sources = ["src/**/*.js", "src/**/*.jsx", "src/**/*.ts", "src/**/*.tsx"]
2518
outputs = { auto = true }
2619

2720
["beeai-web:check:tsc"]
28-
depends = ["common:setup:pnpm", "beeai-web:check:next"]
21+
depends = ["common:setup:pnpm"]
2922
dir = "{{config_root}}/apps/beeai-web"
3023
run = "pnpm tsc --noEmit -p tsconfig.json"
3124
sources = ["src/**/*.ts", "src/**/*.tsx"]
@@ -92,3 +85,6 @@ env.NODE_OPTIONS = "--no-experimental-global-navigator"
9285
run = "pnpm next build"
9386
sources = ["*.json", "*.js", "*.mjs", "*.ts", "public/**/*", "src/**/*"]
9487
outputs = { auto = true }
88+
89+
["beeai-web:build:check"]
90+
depends = ["beeai-web:check:eslint", "beeai-web:check:tsc"]

0 commit comments

Comments
 (0)