Skip to content

dx: enable `problems` auto-fix mode for VS Code ESLint extension

Administrator requested to merge vb/vscode-eslint-perf into main

Created by: valerybugakov

Context

Our VS Code ESLint auto-fix is quite slow at the moment. We need to revisit our ESLint rules and consider disabling some of them to boost auto-fix perf. In the meantime, we can use faster auto-fix mode "problems":

problems: fixes only the currently known fixable problems as long as their textual edits are non-overlapping. This mode is a lot faster but very likely only fixes parts of the problems.

It's an intermediate step. After bringing ESLint auto-fix time down to acceptable levels, we can switch back to "all" mode.

Changes

The auto-fix time on file save went down to 0.2-0.8s from 2-6s on my machine. 🎉 But sometimes, it's required to save files a couple of times to fix overlapping problems.

Merge request reports

Loading