Skip to content

Commit

Permalink
Merge pull request #19669 from storybookjs/eslint-fix
Browse files Browse the repository at this point in the history
Cleanup: Make ESLint the default formatter in vscode
  • Loading branch information
kasperpeulen authored Nov 2, 2022
2 parents c18d0c3 + 81d1792 commit e0026c0
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 2 deletions.
19 changes: 18 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
{
"deepscan.enable": true,
"typescript.tsdk": "./code/node_modules/typescript/lib"
"eslint.workingDirectories": ["./code", "./scripts"],
"typescript.tsdk": "./code/node_modules/typescript/lib",
"[javascript]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
"editor.formatOnSave": true
},
"[javascriptreact]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
"editor.formatOnSave": true
},
"[typescript]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
"editor.formatOnSave": true
},
"[typescriptreact]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
"editor.formatOnSave": true
},
}
20 changes: 19 additions & 1 deletion code/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
{
"typescript.tsdk": "node_modules/typescript/lib"
"deepscan.enable": true,
"eslint.workingDirectories": [".", "../scripts"],
"typescript.tsdk": "node_modules/typescript/lib",
"[javascript]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
"editor.formatOnSave": true
},
"[javascriptreact]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
"editor.formatOnSave": true
},
"[typescript]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
"editor.formatOnSave": true
},
"[typescriptreact]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
"editor.formatOnSave": true
}
}

0 comments on commit e0026c0

Please sign in to comment.