add(dev-dependencies): add eslint and vscode env setting
All checks were successful
Deploy Fefan / deploy (push) Successful in 4m46s

This commit is contained in:
Julien Aldon
2026-04-21 16:34:39 +02:00
parent 1fb13b6093
commit 1da41284ed
4 changed files with 1596 additions and 1072 deletions

25
.vscode/settings.json vendored Normal file
View 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,
}