tact-lang / tact

Tact compiler main repository
https://tact-lang.org
MIT License
374 stars 104 forks source link

Tidy imports in the Tact codebase #865

Open jubnzv opened 1 week ago

jubnzv commented 1 week ago

We could add additional yarn rules to sort and report unused imports. For example, this configuration sorts them alphabetically and places local imports above external ones:

https://github.com/nowarp/misti/blob/f95260498be6801beb0364e16ebd8034784d436c/.eslintrc.js#L28-L52

This setup allows ESLint to automatically fix the import order and address some other warnings by running yarn eslint --fix:

https://github.com/nowarp/misti/blob/f95260498be6801beb0364e16ebd8034784d436c/package.json#L32

anton-trunov commented 1 week ago

Sounds like a great suggestion