Configure ESLint and TypeScript checks based on environment variables

Co-authored-by: natemkelley <natemkelley@gmail.com>
This commit is contained in:
Cursor Agent 2025-08-08 05:46:07 +00:00
parent 567e1ae48c
commit 5f1f434f65
1 changed files with 2 additions and 2 deletions

View File

@ -94,12 +94,12 @@ const nextConfig = {
transpilePackages: ['shiki'], transpilePackages: ['shiki'],
// ESLint configuration // ESLint configuration
eslint: { eslint: {
ignoreDuringBuilds: false, ignoreDuringBuilds: process.env.NEXT_DISABLE_LINT === 'true' || process.env.CI === 'true',
dirs: ['src'] dirs: ['src']
}, },
// Disable TypeScript type checking during builds // Disable TypeScript type checking during builds
typescript: { typescript: {
ignoreBuildErrors: false ignoreBuildErrors: process.env.NEXT_DISABLE_TS_CHECK === 'true'
}, },
sassOptions: { sassOptions: {
includePaths: [path.join(__dirname, 'styles')], includePaths: [path.join(__dirname, 'styles')],