Skip to content

Instantly share code, notes, and snippets.

@ShaifArfan
Last active September 15, 2023 13:27
Show Gist options
  • Save ShaifArfan/1c41978b5b98d8cd95ab3a3f3ffac4fe to your computer and use it in GitHub Desktop.
Save ShaifArfan/1c41978b5b98d8cd95ab3a3f3ffac4fe to your computer and use it in GitHub Desktop.
vscode settings for eslint & prettier extention
{
// 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