Files
next.js/test/integration/webpack-require-hook/next.config.js
Ben GublerandGitHub 41e39426eb Remove automatic linting from build (#83136)
### What?
This PR removes the automatic ESLint linting that previously ran during `next build`. The documentation has been updated to reflect this change.

### Why?
As part of Next.js 16, we're removing the automatic build-time linting that was previously included in the build process. This gives developers more control over when linting runs by explicitly invoking their linter via npm scripts.

### How?
- Updated documentation to clarify that automatic build-time linting has been removed in Next.js 16
- Removed the `runLint` parameter and related linting code from the build process
- Removed the `verifyAndLint.ts` file which is no longer needed
- Simplified type checking code by removing lint-related functionality
- Removed ESLint telemetry during builds
2025-10-08 16:35:07 -07:00

12 lines
292 B
JavaScript

module.exports = {
webpack(config) {
console.log('Initialized config')
if (
require('webpack/lib/node/NodeTargetPlugin') !==
require('next/dist/compiled/webpack/NodeTargetPlugin')
)
throw new Error('Webpack require hook not applying')
return config
},
}