mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
chore: only lint in CI, not on Vercel (#28136)
This commit is contained in:
1 parent
1904d02e33
commit
4496c5a9ab
4 files changed
+21
-1
No files matched your search
@@ -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
|
||||
@@ -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 = () => {
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user