xojs / eslint-config-xo-typescript

ESLint shareable config for TypeScript to be used with eslint-config-xo
MIT License
171 stars 25 forks source link

Update rule to prefer `import {type X}` over `import type {X}` #64

Closed fregante closed 2 years ago

fregante commented 2 years ago

The rule has been improved:

I had disabled it until now because the autofix duplicated module imports between regular import value and import type Type. They just added an option to avoid that and instead mark each type independently:


import {value, type Type} from 'lib'
sindresorhus commented 2 years ago

Ugh. I was fooled to think it was out as it showed on the website.

fregante commented 2 years ago

Sorry, I should have clarified that it was juuuust merged