Skip to content

Commit de3cc23

Browse files
committed
fix: do not rename eslint.config.js to eslint.config.ts
The TS configuration file support isn't stable yet.
1 parent 17bf487 commit de3cc23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ async function init() {
535535
root,
536536
() => {},
537537
(filepath) => {
538-
if (filepath.endsWith('.js')) {
538+
if (filepath.endsWith('.js') && !filepath.endsWith('eslint.config.js')) {
539539
const tsFilePath = filepath.replace(/\.js$/, '.ts')
540540
if (fs.existsSync(tsFilePath)) {
541541
fs.unlinkSync(filepath)

0 commit comments

Comments
 (0)