Last active
September 15, 2023 13:27
-
-
Save ShaifArfan/1c41978b5b98d8cd95ab3a3f3ffac4fe to your computer and use it in GitHub Desktop.
vscode settings for eslint & prettier extention
This file contains 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
{ | |
// START: Settings for Eslint and Prettier | |
"editor.defaultFormatter": "esbenp.prettier-vscode", | |
"editor.formatOnSave": true, | |
"[javascript]": { | |
"editor.formatOnSave": false | |
}, | |
"[javascriptreact]": { | |
"editor.formatOnSave": false | |
}, | |
"editor.codeActionsOnSave": { | |
"source.fixAll": true | |
}, | |
"eslint.alwaysShowStatus": true, | |
"eslint.validate": [ | |
"javascript", | |
"javascriptreact", | |
"typescript", | |
"typescriptreact" | |
], | |
// START: Settings for Prettier | |
"prettier.useTabs": true, | |
"prettier.jsxSingleQuote": false, | |
"prettier.tabWidth": 2, | |
"prettier.arrowParens": "avoid", | |
"prettier.singleQuote": true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment