Unverified Commit f1fe4bbe authored by Houssein Djirdeh's avatar Houssein Djirdeh Committed by GitHub

[ESLint] Update default `.eslintrc` file created to have `.json` format (#26884)

parent ba88bfde
...@@ -70,14 +70,14 @@ export async function writeDefaultConfig( ...@@ -70,14 +70,14 @@ export async function writeDefaultConfig(
} }
} else { } else {
await fs.writeFile( await fs.writeFile(
'.eslintrc', '.eslintrc.json',
CommentJson.stringify(defaultConfig, null, 2) + os.EOL CommentJson.stringify(defaultConfig, null, 2) + os.EOL
) )
console.log( console.log(
chalk.green( chalk.green(
`We created the ${chalk.bold( `We created the ${chalk.bold(
'.eslintrc' '.eslintrc.json'
)} file for you and included the base Next.js ESLint configuration.` )} file for you and included the base Next.js ESLint configuration.`
) )
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment