diff --git a/packages/next/next-server/server/config-shared.ts b/packages/next/next-server/server/config-shared.ts index 4460b010d1638..2bddbbe45fc36 100644 --- a/packages/next/next-server/server/config-shared.ts +++ b/packages/next/next-server/server/config-shared.ts @@ -124,7 +124,7 @@ export const defaultConfig: NextConfig = { reactStrictMode: false, eslint: { dev: false, - build: true, + build: false, }, } diff --git a/test/integration/eslint/custom-eslint-config/next.config.js b/test/integration/eslint/custom-eslint-config/next.config.js new file mode 100644 index 0000000000000..0309ced17cfc6 --- /dev/null +++ b/test/integration/eslint/custom-eslint-config/next.config.js @@ -0,0 +1 @@ +module.exports = { eslint: { build: true } } diff --git a/test/integration/eslint/pkg-json-eslint-config/next.config.js b/test/integration/eslint/pkg-json-eslint-config/next.config.js new file mode 100644 index 0000000000000..cd08f4be97688 --- /dev/null +++ b/test/integration/eslint/pkg-json-eslint-config/next.config.js @@ -0,0 +1,3 @@ +module.exports = { + eslint: { build: true }, +}