more linting

applying some recomendations from https://www.robertcooper.me/using-eslint-and-prettier-in-a-typescript-project
This commit is contained in:
David Lechner
2020-04-08 19:23:19 -05:00
parent dc50b5787f
commit 79df44c22a
10 changed files with 169 additions and 65 deletions
+9
View File
@@ -0,0 +1,9 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
// List of extensions which should be recommended for users of this workspace.
"recommendations": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode"],
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
"unwantedRecommendations": []
}
+8 -7
View File
@@ -11,12 +11,13 @@
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"[typescriptreact]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact"
]
}