From f1fe4bbebf8a26c8d7e072f71f4314c7d61a6526 Mon Sep 17 00:00:00 2001 From: Houssein Djirdeh Date: Mon, 5 Jul 2021 01:58:09 -0700 Subject: [PATCH] [ESLint] Update default `.eslintrc` file created to have `.json` format (#26884) --- packages/next/lib/eslint/writeDefaultConfig.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/next/lib/eslint/writeDefaultConfig.ts b/packages/next/lib/eslint/writeDefaultConfig.ts index 8b8acb54d38d8..aecf6cea247b4 100644 --- a/packages/next/lib/eslint/writeDefaultConfig.ts +++ b/packages/next/lib/eslint/writeDefaultConfig.ts @@ -70,14 +70,14 @@ export async function writeDefaultConfig( } } else { await fs.writeFile( - '.eslintrc', + '.eslintrc.json', CommentJson.stringify(defaultConfig, null, 2) + os.EOL ) console.log( chalk.green( `We created the ${chalk.bold( - '.eslintrc' + '.eslintrc.json' )} file for you and included the base Next.js ESLint configuration.` ) )