Skip to content

Commit

Permalink
chore: lint sources in VSCode by both ESLint and prettier without ext…
Browse files Browse the repository at this point in the history
…ra plugin
  • Loading branch information
cahnory committed Nov 7, 2023
1 parent 95655d6 commit 263d481
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 22 deletions.
3 changes: 1 addition & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"lkrms.inifmt",
"theoolee.reader-mode",
"Jota0222.multi-formatter"
"theoolee.reader-mode"
]
}
34 changes: 14 additions & 20 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,10 @@
"editor.defaultFormatter": "lkrms.inifmt"
},
"[javascript]": {
"editor.defaultFormatter": "Jota0222.multi-formatter",
"multiFormatter.formatterList": [
"esbenp.prettier-vscode",
"dbaeumer.vscode-eslint"
]
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascriptreact]": {
"editor.defaultFormatter": "Jota0222.multi-formatter",
"multiFormatter.formatterList": [
"esbenp.prettier-vscode",
"dbaeumer.vscode-eslint"
]
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
Expand All @@ -29,18 +21,10 @@
"editor.defaultFormatter": "lkrms.inifmt"
},
"[typescript]": {
"editor.defaultFormatter": "Jota0222.multi-formatter",
"multiFormatter.formatterList": [
"esbenp.prettier-vscode",
"dbaeumer.vscode-eslint"
]
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "Jota0222.multi-formatter",
"multiFormatter.formatterList": [
"esbenp.prettier-vscode",
"dbaeumer.vscode-eslint"
]
"editor.defaultFormatter": "esbenp.prettier-vscode"
},

"editor.codeActionsOnSave": {
Expand All @@ -52,6 +36,16 @@
// Instructs ESLint to infer a working directory based on the location of
// package.json, .eslintignore and .eslintrc* files
"eslint.workingDirectories": [{ "mode": "auto" }],
// Makes ESLint lint sources while prettier is set as the default formatter
"eslint.probe": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"html",
"vue",
"markdown"
],
"prettier.enable": true,
// Temporary fix for prettier-vscode issue #3040
// see: https://github.com/prettier/prettier-vscode/issues/3040#issuecomment-1793748475
Expand Down

0 comments on commit 263d481

Please sign in to comment.