vercel / style-guide

Vercel's engineering style guide
Mozilla Public License 2.0
1.28k stars 37 forks source link

Configure `fixStyle` in `consistent-type-imports` #38

Closed mrmckeb closed 1 year ago

mrmckeb commented 2 years ago

This will allow us to default on the cleaner inline type imports, removing duplicate imports.

mrmckeb commented 2 years ago

This hasn't been released yet.

mrmckeb commented 2 years ago

it looks like this has actually landed here:

snewcomer commented 2 years ago

🥳

And likely you will want these two rules + configs to complete a migration on a codebase! Still waiting for # 2475 but very close!

https://github.com/import-js/eslint-plugin-import/pull/2475 https://github.com/import-js/eslint-plugin-import/pull/2473

mrmckeb commented 2 years ago

Can't wait, thanks @snewcomer! Less lines of imports is a win.

mrmckeb commented 1 year ago

We'll close this off in favour of codemods (coming in future).