Update VS Code settings
- "eslint.validate": [ "javascript" ] is no longer needed
(Modern versions of the ESLint VS Code extensions
automatically validate JavaScript files by default.)
- Configure editor to use tabs instead of spaces per ESLint rules
- Switch to VS Code's built-in HTML formatter
- Add EJS file associations for proper syntax highlighting
- Add recommended extensions for development workflow
This commit is contained in:
parent
ca272de8bf
commit
bf65b8e426
2 changed files with 16 additions and 7 deletions
5
.vscode/settings.json
vendored
5
.vscode/settings.json
vendored
|
|
@ -17,7 +17,4 @@
|
|||
"editor.codeActionsOnSave": {
|
||||
"source.fixAll.eslint": "explicit"
|
||||
},
|
||||
"eslint.validate": [
|
||||
"javascript"
|
||||
],
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -56,17 +56,29 @@
|
|||
"**/vendor/auto/**",
|
||||
],
|
||||
"editor.tabSize": 2,
|
||||
"editor.insertSpaces": false, // .eslintrc wants tabs instead of spaces
|
||||
"emmet.includeLanguages": {
|
||||
"ejs": "html",
|
||||
},
|
||||
"[html]": {
|
||||
"editor.defaultFormatter": "j69.ejs-beautify"
|
||||
// Use built-in VS Code HTML formatter instead of third-party EJS extension
|
||||
"editor.defaultFormatter": "vscode.html-language-features"
|
||||
},
|
||||
"files.exclude": {},
|
||||
"files.eol": "\n",
|
||||
"files.associations": {
|
||||
"*.ejs": "ejs"
|
||||
},
|
||||
"editor.formatOnSave": true,
|
||||
"editor.codeActionsOnSave": {
|
||||
"source.fixAll.eslint": "explicit"
|
||||
},
|
||||
}
|
||||
},
|
||||
}
|
||||
"extensions": {
|
||||
"recommendations": [
|
||||
"digitalbrainstem.javascript-ejs-support", // EJS (Embedded JavaScript) template language support
|
||||
"dbaeumer.vscode-eslint", // ESLint JavaScript linting integration
|
||||
"streetsidesoftware.code-spell-checker",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue