Skip to content

Commit

Permalink
feat: add prettier config
Browse files Browse the repository at this point in the history
  • Loading branch information
sqs committed Apr 19, 2020
1 parent 1eca224 commit c9fd0ba
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,13 @@ async function main(): Promise<void> {
await writeFile('eslint.json', JSON.stringify(eslintJson, null, 2))
}

if (await exists('prettier.config.js')) {
console.log('prettier.config.js already exists, skipping creation')
} else {
console.log('📄 Adding prettier.config.js')
await writeFile('prettier.config.js', "module.exports = require('@sourcegraph/prettierrc')")
}

console.log('📄 Adding .editorconfig')
await writeFile(
'.editorconfig',
Expand Down

0 comments on commit c9fd0ba

Please sign in to comment.