-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: use eslint-config-ipfs import sorting #1178
Conversation
This PR shows an example of what changes ipfs/eslint-config-ipfs#126 would enforce. All of this these changes (except package.json) were done by running `npm run lint -- --fix`. CALLOUTS: 1. eslint was failing with locally linked package on missing plugins. 1. lint fix was called twice, with the first run failing due to an empty line the first fix runthrough didn't fix. 1. tsc seems to be failing for aegir
It's failing because the automated reordering of imports didn't also move the associated E.g. this used to work: // @ts-expect-error foo-no-types has no types
import foo from 'foo-no-types'
import bar from 'bar-has-types' then with the changes in ipfs/eslint-config-ipfs#126 // @ts-expect-error foo-no-types has no types
import bar from 'bar-has-types'
import foo from 'foo-no-types' so it explodes because the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, applying this rule doesn't seem to move associated comments in utils/echo-server.js
https://github.com/ipfs/aegir/actions/runs/4057685025/jobs/6983724772
Co-authored-by: Nishant Arora <[email protected]>
Co-authored-by: Nishant Arora <[email protected]>
Lint import sorting, and support auto-fixing of import order. see ipfs/aegir#1178 for an example --------- Co-authored-by: Alex Potsides <[email protected]>
Lint import sorting, and support auto-fixing of import order. see ipfs/aegir#1178 for an example --------- Co-authored-by: Alex Potsides <[email protected]>
Superseded by #1229 |
This PR shows an example of what changes ipfs/eslint-config-ipfs#126
would enforce. All of this these changes (except package.json) were done
by running
npm run lint -- --fix
.CALLOUTS:
line the first fix runthrough didn't fix.