mirror of https://github.com/buster-so/buster.git
Configure ESLint and TypeScript checks based on environment variables
Co-authored-by: natemkelley <natemkelley@gmail.com>
This commit is contained in:
parent
567e1ae48c
commit
5f1f434f65
|
@ -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')],
|
||||||
|
|
Loading…
Reference in New Issue