react-code-dataset / wp-calypso /.vscode /settings-sample.jsonc
Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
{
// File settings
"files.eol": "\n",
"files.exclude": {
"**/node_modules": true,
".cache": true
},
"files.associations": {
// VS Code treats ".prettierrc" as JSON, by default
".prettierrc": "yaml"
},
// Editor settings
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.fixAll": "explicit",
"source.fixAll.eslint": "explicit",
"source.fixAll.tslint": "explicit",
"source.fixAll.stylelint": "explicit"
},
// Use prettier for formatting JS/TS
"[javascript][javascriptreact][typescript][typescriptreact]": {
// auto format on save will be done by ESLint
"editor.formatOnSave": false,
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[jsonc][json][yaml][markdown]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
// Use stylint for formatting CSS/SCSS
"[css][scss][sass]": {
"editor.formatOnSave": false,
"editor.defaultFormatter": "stylelint.vscode-stylelint"
},
// Settings for extensions
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"json",
"jsonc"
],
"css.validate": false,
"scss.validate": false,
"stylelint.validate": [ "css", "scss", "postcss" ],
// Use the installed version of TypeScript, not the ones bundled with VS Code
"typescript.tsdk": "node_modules/typescript/lib"
}