File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed
Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ "recommendations" : [
3+ " dbaeumer.vscode-eslint" ,
4+ " esbenp.prettier-eslint"
5+ ]
6+ }
Original file line number Diff line number Diff line change 1+ {
2+ // Enable ESLint
3+ "eslint.enable" : true ,
4+ // Validate these file types with ESLint
5+ "eslint.validate" : [
6+ " javascript" ,
7+ " javascriptreact" ,
8+ " typescript" ,
9+ " typescriptreact"
10+ ],
11+ // Format on save
12+ "editor.formatOnSave" : true ,
13+ // Use ESLint to fix issues on save
14+ "editor.codeActionsOnSave" : {
15+ "source.fixAll.eslint" : " explicit"
16+ },
17+ // Set default formatter for TypeScript files
18+ "[typescript]" : {
19+ "editor.defaultFormatter" : " dbaeumer.vscode-eslint"
20+ },
21+ "[javascript]" : {
22+ "editor.defaultFormatter" : " dbaeumer.vscode-eslint"
23+ },
24+ // Optional: Auto-save files
25+ "files.autoSave" : " onFocusChange" ,
26+ // Show ESLint status in the status bar
27+ "eslint.alwaysShowStatus" : true
28+ }
You can’t perform that action at this time.
0 commit comments