From 9f7dd8edbdae65589ef9b28ba85714c01d2a3103 Mon Sep 17 00:00:00 2001 From: Martin Hochel Date: Thu, 10 Mar 2022 15:55:07 +0100 Subject: [PATCH] chore: run eslint --fix on save --- .vscode/settings.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.vscode/settings.json b/.vscode/settings.json index ec1aeb55e2ddcc..3485628ed613e7 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -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, @@ -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"