coderaiser / putout

🐊 Pluggable and configurable JavaScript Linter, code transformer and formatter, drop-in ESLint superpower replacement 💪 with built-in support for js, jsx, typescript, flow, markdown, yaml and json. Write declarative codemods in a simplest possible way 😏
https://putout.cloudcmd.io/
MIT License
698 stars 40 forks source link

[types/convert-typeof-to-is-type]: Rule does not check for `typeof x === 'bigint'` #158

Closed ElPrudi closed 1 year ago

ElPrudi commented 1 year ago

I like the concept of the rule to keep my bundle size short, but I think you accidentally forgot to include the bigint type. To be fair, I guess it's a rather new addition to JS.

const isBigInt = (value) => typeof value === 'bigint'
coderaiser commented 1 year ago

Nice idea :)!

Just updated @putout/plugin-types 🎉 . Please re-install 🐊Putout. Is it works for you?

ElPrudi commented 1 year ago

Yes, it's working. Thank you very much :)