-
Notifications
You must be signed in to change notification settings - Fork 24
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
Add frontend linting #228
Add frontend linting #228
Conversation
for more information, see https://pre-commit.ci
How would this work for applying formatting changes? Is there a pre-commit hook that will do formatting like ruff does for python? |
unfortunately there isn't currently a pre-commit hook for running eslint/prettier via npm or anything, so the idea is that the it is somewhat annoyingly manual, but the other option would be adding another formatting workflow that runs |
I see the commented-out local runner for eslint in Is that something that could be made to work? |
possible, but it previously failed because npm/bun aren't installed on the pre-commit CI runner. could try adding a line that installs it |
yeah, i've tried a few things and i'm not sure how easy it'll be to get pre-commit.ci to play nicely with the node stuff. may be worth looking into how to develop a proper hook at some point |
New version of #220 based on
master
rather thanrestructure
.lint
andtest:lint
script inpackage.json
bun|npm run test:lint
to preview warnings/errors, orbun|npm run lint
to apply fixable changesformat
script inpackage.json
to only run prettier without linting