github-actions
released this
19 Aug 11:17
·
2118 commits
to main
since this release
Major Changes
-
0f0888d: tl;dr
- linting for conformance with our
prettier
config is slow - to speed up linting, we will stop doing that
- you should use
prettier
directly
Before
We extended
plugin:prettier/recommended
which- used
eslint-config-prettier
to disable any white-space formatting rules that would conflict with our prettier config - used
eslint-plugin-prettier
to lint for formatting errors that did not match our prettier config
This is quite expensive, and although it means you could use
--fix
to apply prettier, it's not as fast as using prettier directly.After
We still use
eslint-config-prettier
to avoid conflicts with ourprettier
config, but we no longer lint for errors (and therefore also don't fix them).Recommendations
Your project should handle
prettier
formatting in another way, e.g.- via editor integration
- via a pre-commit hook
If you prefer the way this used to work (applying
prettier
formatting as part of linting), add the eslint-plugin-prettier manually to your ESLint config. - linting for conformance with our