Skip to content

Commit e3dc792

Browse files
authored
fix: correct file name of .eslintrc.json (#110)
1 parent c4201cf commit e3dc792

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cli.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ async function main(): Promise<void> {
122122
await writeFile('tsconfig.json', JSON.stringify(tsconfigJson, null, 2))
123123
}
124124

125-
if (await exists('eslint.json')) {
126-
console.log('📄 eslint.json already exists, skipping creation')
125+
if (await exists('.eslintrc.json')) {
126+
console.log('📄 .eslintrc.json already exists, skipping creation')
127127
} else {
128128
console.log('📄 Adding .eslintrc.json')
129129
const eslintJson: JSONSchemaForESLintConfigurationFiles = {
@@ -132,7 +132,7 @@ async function main(): Promise<void> {
132132
project: 'tsconfig.json',
133133
},
134134
}
135-
await writeFile('eslint.json', JSON.stringify(eslintJson, null, 2))
135+
await writeFile('.eslintrc.json', JSON.stringify(eslintJson, null, 2))
136136
}
137137

138138
if (await exists('prettier.config.js')) {

0 commit comments

Comments
 (0)