2022-09-08 15:41:24 +00:00
|
|
|
|
# Development Setup
|
|
|
|
|
|
|
|
|
|
## Lint / format extensions
|
|
|
|
|
|
2022-09-08 15:54:45 +00:00
|
|
|
|
Setting these in the IDE give a better developer experience auto-formatting code on save and providing instant feedback on lint issues.
|
|
|
|
|
|
2022-09-08 15:41:24 +00:00
|
|
|
|
### VSCode
|
|
|
|
|
Install Prettier, ESLint and Svelte extensions.
|
|
|
|
|
|
|
|
|
|
in User `settings.json` (`cmd + shift + p` and search for Open User Settings JSON) add the following:
|
|
|
|
|
|
|
|
|
|
```json
|
|
|
|
|
{
|
|
|
|
|
"editor.formatOnSave": true,
|
|
|
|
|
"[javascript][typescript][css]": {
|
|
|
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
|
|
|
"editor.tabSize": 2,
|
|
|
|
|
"editor.formatOnSave": true
|
|
|
|
|
},
|
|
|
|
|
"[svelte]": {
|
|
|
|
|
"editor.defaultFormatter": "svelte.svelte-vscode",
|
|
|
|
|
"editor.tabSize": 2
|
|
|
|
|
},
|
|
|
|
|
"svelte.enable-ts-plugin": true,
|
|
|
|
|
"eslint.validate": ["javascript", "svelte"]
|
|
|
|
|
}
|
|
|
|
|
```
|
2022-09-08 15:54:45 +00:00
|
|
|
|
|
|
|
|
|
## Running tests / checks
|
|
|
|
|
|
|
|
|
|
In both server and web:
|
|
|
|
|
`npm run check:all`
|