Skip to content

Commit 672e862

Browse files
authored
chore: fix ESLint not linting JSX/TSX files in VS Code (#60)
2 parents c7f60db + e69b063 commit 672e862

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.vscode/settings.json

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
{
22
"editor.defaultFormatter": "esbenp.prettier-vscode",
33
"editor.formatOnSave": true,
4-
"eslint.validate": ["typescript", "javascript"],
5-
"[json]": {
6-
"editor.defaultFormatter": "esbenp.prettier-vscode"
7-
},
8-
"[jsonc]": {
9-
"editor.defaultFormatter": "esbenp.prettier-vscode"
10-
},
4+
"eslint.validate": [
5+
"typescript",
6+
"javascript",
7+
"typescriptreact",
8+
"javascriptreact"
9+
],
1110
"eslint.run": "onType",
1211
"eslint.useFlatConfig": true,
1312
"eslint.format.enable": true,
1413
"editor.codeActionsOnSave": {
15-
"source.fixAll.eslint": "explicit"
14+
"source.fixAll.eslint": "always"
1615
}
1716
}

0 commit comments

Comments
 (0)