Skip to content

Commit

Permalink
linter config
Browse files Browse the repository at this point in the history
  • Loading branch information
ntotten committed Apr 13, 2020
1 parent 93511ee commit 4f394f5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,20 @@ Another option to run Prettier and linters together is to have the linters run P
- **TSLint**: [Extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode.vscode-typescript-tslint-plugin) | [Configuration](https://prettier.io/docs/en/integrating-with-linters.html#use-tslint-to-run-prettier)
- **Stylelint**: [Extension](https://marketplace.visualstudio.com/items?itemName=stylelint.vscode-stylelint) | [Configuration](https://prettier.io/docs/en/integrating-with-linters.html#use-stylelint-to-run-prettier)

Disable format on save so this extension doesn't run and enable code actions to run the linters on save.

```
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
// For ESLint
"source.fixAll.eslint": true,
// For TSLint
"source.fixAll.tslint": true,
// For Stylelint
"source.fixAll.stylelint": true
}
```

## Settings

### Prettier Settings
Expand Down

0 comments on commit 4f394f5

Please sign in to comment.