mirror of
https://github.com/netbymatt/ws4kp.git
synced 2026-04-23 03:59:30 -07:00
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:
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@@ -17,7 +17,4 @@
|
|||||||
"editor.codeActionsOnSave": {
|
"editor.codeActionsOnSave": {
|
||||||
"source.fixAll.eslint": "explicit"
|
"source.fixAll.eslint": "explicit"
|
||||||
},
|
},
|
||||||
"eslint.validate": [
|
|
||||||
"javascript"
|
|
||||||
],
|
|
||||||
}
|
}
|
||||||
@@ -56,17 +56,29 @@
|
|||||||
"**/vendor/auto/**",
|
"**/vendor/auto/**",
|
||||||
],
|
],
|
||||||
"editor.tabSize": 2,
|
"editor.tabSize": 2,
|
||||||
|
"editor.insertSpaces": false, // .eslintrc wants tabs instead of spaces
|
||||||
"emmet.includeLanguages": {
|
"emmet.includeLanguages": {
|
||||||
"ejs": "html",
|
"ejs": "html",
|
||||||
},
|
},
|
||||||
"[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.exclude": {},
|
||||||
"files.eol": "\n",
|
"files.eol": "\n",
|
||||||
|
"files.associations": {
|
||||||
|
"*.ejs": "ejs"
|
||||||
|
},
|
||||||
"editor.formatOnSave": true,
|
"editor.formatOnSave": true,
|
||||||
"editor.codeActionsOnSave": {
|
"editor.codeActionsOnSave": {
|
||||||
"source.fixAll.eslint": "explicit"
|
"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",
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user