Skip to content

Commit

Permalink
chore: run eslint --fix on save
Browse files Browse the repository at this point in the history
  • Loading branch information
Hotell committed Mar 10, 2022
1 parent 5b0bbc2 commit 799ddad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
// When opening a file, `editor.tabSize` and `editor.insertSpaces` will NOT be detected based on the file contents.
"editor.detectIndentation": false,
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
// When enabled, will trim trailing whitespace when you save a file.
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
Expand Down Expand Up @@ -45,6 +48,7 @@
},
"editor.rulers": [120],
"eslint.workingDirectories": [{ "mode": "auto" }], // infer working directory based on .eslintrc/package.json location
"eslint.codeActionsOnSave.mode": "problems",
"files.associations": {
"**/package.json.hbs": "json",
"**/*.json.hbs": "jsonc"
Expand Down

0 comments on commit 799ddad

Please sign in to comment.