Skip to content

Commit

Permalink
fix: use new vscode settings
Browse files Browse the repository at this point in the history
  • Loading branch information
sqs committed Apr 19, 2020
1 parent 5fe41f5 commit 5e836c8
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,19 +210,10 @@ async function main(): Promise<void> {
const vscodeSettings = {
'editor.formatOnSave': true,
'typescript.format.semicolons': 'remove',
'eslint.autoFixOnSave': true,
'eslint.validate': [
'javascript',
'javascriptreact',
{
language: 'typescript',
autoFix: true,
},
{
language: 'typescriptreact',
autoFix: true,
},
],
'eslint.validate': ['javascript', 'javascriptreact', 'typescript', 'typescriptreact'],
'editor.codeActionsOnSave': {
'source.fixAll.eslint': true,
},
}
await mkdirp('.vscode')
await writeFile('.vscode/settings.json', JSON.stringify(vscodeSettings, null, 2))
Expand Down

0 comments on commit 5e836c8

Please sign in to comment.