Skip to content

Commit c9fd0ba

Browse files
committed
feat: add prettier config
1 parent 1eca224 commit c9fd0ba

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/cli.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,13 @@ async function main(): Promise<void> {
135135
await writeFile('eslint.json', JSON.stringify(eslintJson, null, 2))
136136
}
137137

138+
if (await exists('prettier.config.js')) {
139+
console.log('prettier.config.js already exists, skipping creation')
140+
} else {
141+
console.log('📄 Adding prettier.config.js')
142+
await writeFile('prettier.config.js', "module.exports = require('@sourcegraph/prettierrc')")
143+
}
144+
138145
console.log('📄 Adding .editorconfig')
139146
await writeFile(
140147
'.editorconfig',

0 commit comments

Comments
 (0)