add(dev-dependencies): add eslint and vscode env setting
All checks were successful
Deploy Fefan / deploy (push) Successful in 4m46s
All checks were successful
Deploy Fefan / deploy (push) Successful in 4m46s
This commit is contained in:
25
.vscode/settings.json
vendored
Normal file
25
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
// Formatting
|
||||
"editor.formatOnSave": true,
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
||||
"eslint.workingDirectories": [{ "mode": "auto" }],
|
||||
// ESLint auto-fix on save
|
||||
"editor.codeActionsOnSave": {
|
||||
"source.fixAll.eslint": "explicit",
|
||||
"source.organizeImports": "explicit"
|
||||
},
|
||||
"npm.autoDetect": "on",
|
||||
|
||||
// Auto import behavior
|
||||
"typescript.preferences.importModuleSpecifier": "non-relative",
|
||||
"javascript.preferences.importModuleSpecifier": "non-relative",
|
||||
|
||||
// Enable ESLint for TS/JS
|
||||
"eslint.validate": [
|
||||
"javascript",
|
||||
"javascriptreact",
|
||||
],
|
||||
|
||||
// Prevent conflicts with Prettier + ESLint
|
||||
"prettier.requireConfig": true,
|
||||
}
|
||||
Reference in New Issue
Block a user