r/javascript • u/philboooo • Apr 26 '26
eslint-plugin-logical-imports
https://www.npmjs.com/package/eslint-plugin-logical-importsI disagree with, as far as I'm aware, literally everyone else about the correct sort order for import statements. When you find yourself disagreeing with everyone, it's probably a sign you should change your thinking. But I guess I'm quite stubborn, so in this ESLint plugin I'm trying to make everyone else change their thinking instead.
0
Upvotes
View all comments
Show parent comment
2
u/fucking_passwords Apr 26 '26
Yes, and while I disagree with some of the less conventional opinions of this plugin, lint rules and auto formatting for import order is pretty great, especially in projects with lots of contributors. When the build fails because of unused imports and order gets auto corrected, it really lets you ignore the imports altogether when doing code reviews