-
-
Notifications
You must be signed in to change notification settings - Fork 217
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: add eslint unicorn plugin #213
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for valibot ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
I will review this PR after we merged #202. |
b997a0f
to
6d0cde4
Compare
41ae798
to
4a7ee57
Compare
7a97dd0
to
b5f7f4d
Compare
FYI, |
Good point. I think we briefly discussed that back then and preferred having one rule over many that improve regexps, but if it contains bugs, we should go for eslint-plugin-regexp (at Framer we're also using that). Wdyt Fabian? |
I think you can decide that better. Feel free to create a PR and improve our current setup. |
f41426c
to
d713dfe
Compare
This PR is based on #202.
Unicorn really brings some advantages, such as auto optimizing regexps (makes them smaller) and sets rules for writing or using regexps in the most efficient way. https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-array-reduce.md?rgh-link-date=2023-10-07T09%3A37%3A41Z might also be interesting (for e.g. #203)