Skip to content

Commit

Permalink
style: add implicit formating on save in vscode (#694)
Browse files Browse the repository at this point in the history
* style: add vscode workspace configuration to format files on save

* chore: enforce tsc skipLibCheck on lint-staged due broken dependencies
  • Loading branch information
rostislav-simonik committed Jul 31, 2023
1 parent 40682aa commit 0f771ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@
},
"gitdoc.enabled": false,
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true
"typescript.enablePromptUseWorkspaceTsdk": true,
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
2 changes: 1 addition & 1 deletion lint-staged.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ module.exports = {
'*': 'prettier --ignore-unknown --check',
'*.{ts,tsx}': (filenames) => [
`yarn eslint --ext .ts,.tsx --max-warnings 0 ${filenames.join(' ')}`,
'yarn type:check',
'yarn type:check --skipLibCheck',
],
}

0 comments on commit 0f771ae

Please sign in to comment.