Problem: Sometimes devs accidentally reorder imports while coding


Problem: Sometimes devs accidentally reorder imports while coding. This leads to needless diffs.

Solution: eslint-plugin-import's import/order rule

This rule sorts imports *automatically*, so each diff is as lean as possible.

Result? No more needless diffs like this:

😀

Oh, and eslint-plugin-imports includes a long list of other useful features, many of which can be autofixed.

I highly recommend it.

More here: https://github.com/import-js/eslint-plugin-import

View original on X