Last active
June 27, 2022 18:29
-
-
Save pratikdevdas/3bb2fb1f82396449f7abed0de102b952 to your computer and use it in GitHub Desktop.
Onsave formatting for react which uses prettier and es-lint both
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"emmet.includeLanguages": { | |
"javascript": "javascriptreact" | |
}, | |
"emmet.triggerExpansionOnTab": true, | |
"editor.codeActionsOnSave": { | |
//eslint-runs-automatically-on-save | |
"source.fixAll.eslint": true | |
}, | |
"eslint.validate": [ | |
"javascript" | |
], | |
//prettier-runs-automatically-on-save | |
//remove-for-projects-which-arent-using-prettier | |
"editor.formatOnSave": true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment