yudai-nkt / eslint-plugin-uvu

ESLint plugin for uvu
https://www.npmjs.com/package/eslint-plugin-uvu
MIT License
5 stars 3 forks source link

Add auto-fixable for `uvu/prefer-is-for-primitives` #1

Open ai opened 1 year ago

ai commented 1 year ago

I think we can fix uvu/prefer-is-for-primitives warnings automatically.

I can send PR (ask other developers to do it), if you agree that it is useful and don’t want to spend time.

yudai-nkt commented 1 year ago

Wow, never expected to receive issues from you!

The reason I didn't implement auto-fixer was I thought it would be a type-aware linting. However, just checking whether the expected value is given as a literal should be enough for most cases.

I can send PR (ask other developers to do it), if you agree that it is useful and don’t want to spend time.

This is very much welcome! I can find some time to work on the other two issues then.

ynsem commented 1 year ago

@ai @yudai-nkt Check, please https://github.com/yudai-nkt/eslint-plugin-uvu/pull/6