Skip to content

Commit

Permalink
Add .eslintrc.cjs to list of supported next lint config files
Browse files Browse the repository at this point in the history
  • Loading branch information
jakejarvis committed Mar 27, 2022
1 parent 086cf91 commit d549bdf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/next/lib/eslint/runLintCheck.ts
Expand Up @@ -265,10 +265,12 @@ export async function runLintCheck(
): ReturnType<typeof lint> {
try {
// Find user's .eslintrc file
// See: https://eslint.org/docs/user-guide/configuring/configuration-files#configuration-file-formats
const eslintrcFile =
(await findUp(
[
'.eslintrc.js',
'.eslintrc.cjs',
'.eslintrc.yaml',
'.eslintrc.yml',
'.eslintrc.json',
Expand Down
1 change: 1 addition & 0 deletions test/integration/eslint/test/index.test.js
Expand Up @@ -348,6 +348,7 @@ describe('ESLint', () => {
(await findUp(
[
'.eslintrc.js',
'.eslintrc.cjs',
'.eslintrc.yaml',
'.eslintrc.yml',
'.eslintrc.json',
Expand Down

0 comments on commit d549bdf

Please sign in to comment.