Skip to content

Commit

Permalink
Merge pull request wesbos#15 from vpicone/patch-1
Browse files Browse the repository at this point in the history
Stop editor formatting on save for .jsx files
  • Loading branch information
wesbos committed Mar 13, 2019
2 parents 22c13be + 094b383 commit f1efb11
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,13 @@ Once you have done one, or both, of the above installs. You probably want your e
```js
// These are all my auto-save configs
"editor.formatOnSave": true,
// turn it off for JS, we will do this via eslint
// turn it off for JS and JSX, we will do this via eslint
"[javascript]": {
"editor.formatOnSave": false
},
"[javascriptreact]": {
"editor.formatOnSave": false
},
// tell the ESLint plugin to run on save
"eslint.autoFixOnSave": true,
// Optional BUT IMPORTANT: If you have the prettier extension enabled for other languages like CSS and HTML, turn it off for JS since we are doing it through Eslint already
Expand Down

0 comments on commit f1efb11

Please sign in to comment.