Skip to content

Commit

Permalink
chore: add vscode settings to the readme (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomrdias committed Nov 9, 2022
1 parent 67dcec2 commit 44d1df2
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,45 @@ npx simple-git-hooks
cp .env.tpl .env
```

### Vscode config

Install these extensions

- https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint
- https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode
- Optional toggle for formatting https://marketplace.visualstudio.com/items?itemName=tombonnike.vscode-status-bar-format-toggle

Add these lines to your package.json

```json
"eslintConfig": {
"extends": [
"./node_modules/hd-scripts/eslint/index.js"
],
"parserOptions": {
"project": "./tsconfig.json"
},
// optional
"env": {
"mocha": true
},
"ignorePatterns": [
"dist"
]
},
```

Add these lines to your vscode workspace settings at `.vscode/settings.json`

```text
"javascript.format.enable": false,
"typescript.format.enable": false,
"editor.formatOnPaste": true,
"editor.formatOnType": true,
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
```

Each package has it's own readme with specific instructions.

## Release Process
Expand Down

0 comments on commit 44d1df2

Please sign in to comment.