-
Notifications
You must be signed in to change notification settings - Fork 145
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
Adding oxlint, removing eslint, adding husky pre-commit #2012
Conversation
isn't running where does the desire for linting come from? |
o1js is full of inconsistent styling, which isn't the end of the world, but does cause a lot of noise in PRs. We also have seen more formatting requests in PRs lately, so we are discussing enforcing a more uniform style. There are 2 questions:
My answers are 1: yes 2: not strictly. The pre-commit hook can easily be skipped, but it just reminds the developer to think about it. |
@45930 if it's about code style, isn't prettier enough though? on first glance oxlint seems to be a mix of:
maybe it's worth it for the third point, let's see. I'll complain if it gets annoying :D |
I think the biggest things are unused imports and function arguments, which are really low stakes, but just kind of look sloppy. I think you're fair to question the value of this if if also reduces velocity. Let's see what others think. |
@mitschabaude FYI this will be the next iteration based on internal chat:
The CI rule is expected to be annoying at first, but it encourages developers to either use the pre-commit hook, or set up their devenv to format code correctly using whatever tools they prefer. As for oxlint, just don't make any dumb mistakes |
sounds good to me! thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please update the npm-deps-hash
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
@Geometer1729 do you know how to dismiss the github actions bot stale review? I think it's blocking merging of this PR. |
main
) follow the oxlint, as well as prettier ruleshusky.optin=true
in your git config