next build does not lint .mjs files #36819
Labels
area: ESLint
ESLint config, ESLint rules, ESLint plugins
good first issue
Easy to fix issues, good for newcomers
Verify canary release
Provide environment information
What browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
Describe the Bug
next/lint
by default does not lint.mjs
files (see here), but it is possible to pass--ext .mjs
.when
next build
runs the linter, it uses the same default file extensions (see here), however there is no way to provide custom file extensions like with the--ext
CLI option.Expected Behavior
see above
To Reproduce
git clone git@github.com:stefanprobst/issue-next-lint-mjs.git
yarn run lint
shows no erroryarn run lint:ext
shows error because it passes--ext .mjs
yarn run build
shows no errorThe text was updated successfully, but these errors were encountered: