Skip to content

Commit

Permalink
refactor: use js extension for eslint config (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
cexbrayat authored Oct 11, 2024
1 parent 65170b6 commit a63e076
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/create-eslint-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ const lintCommand = packageManager === 'npm' ? 'npm run lint' : `${packageManage

console.info(
'\n' +
`${bold(yellow('package.json'))} and ${bold(blue('eslint.config.mjs'))} have been updated.\n` +
`${bold(yellow('package.json'))} and ${bold(blue('eslint.config.js'))} have been updated.\n` +
`Now please run ${bold(green(installCommand))} to re-install the dependencies.\n` +
`Then you can run ${bold(green(lintCommand))} to lint your files.`
)
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ export default function createConfig({
}

const files = {
'eslint.config.mjs': renderEjsFile(
'./templates/eslint.config.mjs.ejs',
'eslint.config.js': renderEjsFile(
'./templates/eslint.config.js.ejs',
templateData,
),
'.editorconfig': renderEjsFile(
Expand Down
File renamed without changes.

0 comments on commit a63e076

Please sign in to comment.