Before
import a from "a";
import bb from "b";
import ccc from "c";
After
import a from "a";
import bb from "b";
import ccc from "c";
- Install the plugin
yarn add -D eslint-plugin-better-align
- In your eslint config file, adding:
...
"plugins": [
"better-align",
],
"rules": {
"better-align/import-align": [2, "always"],
},
...