chore: only lint in CI, not on Vercel (#28136)

This commit is contained in:
Kevin Grüneberg authored and GitHub committed 2024-07-23 16:28:52 +08:00
1 parent 1904d02e33
commit 4496c5a9ab
4 files changed
+21 -1

No files matched your search

+4 -1
View File
@@ -1,4 +1,4 @@
name: Check code with TypeScript
name: Check code with TypeScript & Lint
on:
pull_request:
@@ -30,3 +30,6 @@ jobs:
- name: Run TypeScript type check
run: npx turbo run typecheck
- name: Run Lint
run: npx turbo run lint
+4
View File
@@ -150,6 +150,10 @@ const nextConfig = {
// Typechecking is checked separately via .github/workflows/typecheck.yml
ignoreBuildErrors: true,
},
eslint: {
// We are already running linting via GH action, this will skip linting during production build on Vercel
ignoreDuringBuilds: true,
},
}
const configExport = () => {
+4
View File
@@ -469,6 +469,10 @@ const nextConfig = {
// Typechecking is checked separately via .github/workflows/typecheck.yml
ignoreBuildErrors: true,
},
eslint: {
// We are already running linting via GH action, this will skip linting during production build on Vercel
ignoreDuringBuilds: true,
},
}
// module.exports = withBundleAnalyzer(nextConfig)
+9
View File
@@ -93,6 +93,15 @@ const nextConfig = {
async redirects() {
return redirects
},
typescript: {
// WARNING: production builds can successfully complete even there are type errors
// Typechecking is checked separately via .github/workflows/typecheck.yml
ignoreBuildErrors: true,
},
eslint: {
// We are already running linting via GH action, this will skip linting during production build on Vercel
ignoreDuringBuilds: true,
},
}
// next.config.js.