lifinance / widget

LI.FI Widget for cross-chain bridging and swapping. It will drive your multi-chain strategy and attract new users from everywhere.
https://li.fi/widget
Apache License 2.0
129 stars 84 forks source link

chore: add import sort order to eslint #234

Closed DNR500 closed 7 months ago

DNR500 commented 7 months ago

Jira: LF-7839

First attempt was using the eslint-plugin-simple-import-sort package. It did autofix but main issues where..

The end solution using a mix of sort-imports and eslint-plugin-import This PR is using a mix of eslints built in sort-imports and the eslint-plugin-import that we already have in the codebase. sort-import handles the sorting of named imports and the plugin does the rest. Also import statements without variable assignment are ignored. It should autofix imports too.

DNR500 commented 7 months ago

Closing this PR as have switched to looking at prettier as an option - see https://github.com/lifinance/widget/pull/238