core icon indicating copy to clipboard operation
core copied to clipboard

It's now impossible to autofix new lint violations introduced on the current branch

Open mcmire opened this issue 1 year ago • 1 comments

yarn lint:fix is a handy way to automatically fix lint violations. However, with the upgrade to ESLint 9, this package script became useless, as it now fixes warnings and errors across the entire monorepo.

We could change this script to only autofix errors, but I don't think that addresses the real need here.

Acceptance Criteria

  • It is possible to only fix the lint errors and warnings introduced in a new branch and nothing more.

mcmire avatar Jan 29 '25 20:01 mcmire

Maybe we could pull ideas from this repo in order to only lint files and lines that have changed in the current branch: https://github.com/paleite/eslint-plugin-diff

Also see this ticket for some ideas: https://github.com/MetaMask/core/issues/1333 as well as this branch: https://github.com/MetaMask/core/tree/use-lint-changed

mcmire avatar Jan 29 '25 20:01 mcmire