Skip to content

Commit

Permalink
feat: add autoformatting/linting to vscode (#2320)
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellacosse authored Jan 8, 2025
1 parent cfa96da commit b48dd2c
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ node_modules
.idea
.task
.vs/
.vscode
*.DS_Store
*.env
*.pdb
Expand All @@ -13,4 +12,4 @@ node_modules
/output
/build

*storybook.log
*storybook.log
5 changes: 5 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"dbaeumer.vscode-eslint"
]
}
18 changes: 18 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"eslint.run": "onSave",
"eslint.validate": ["javascript", "typescript"],
"files.insertFinalNewline": true,
"[go]": {
"editor.formatOnSave": true
},
"[javascript]": {
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "always"
},
},
"[typescript]": {
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "always"
},
},
}
6 changes: 5 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,8 @@ again.
All submissions, including submissions by project members, require review. We
use GitHub pull requests for this purpose. Consult
[GitHub Help](https://help.github.com/articles/about-pull-requests/) for more
information on using pull requests.
information on using pull requests.

## Setup: VSCode

Make sure to go to the `Extensions` tab and install the recommended extensions!

0 comments on commit b48dd2c

Please sign in to comment.