-
Notifications
You must be signed in to change notification settings - Fork 821
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
GitHub actions and eslint config - warning only for now #3723
Conversation
I made a PR on my fork to show you how it would work: beekeeper-studio#2 See how it marks my PR as failed because my PR has dist changes. Just what we want! |
Hey @rathboma That looks great, i will schedule this for inclusion in the next minor release. Cheers Oli :) |
Thanks for getting this all togeather, im gonna merge it into the 5.3 branch and will have a play with it all ready for the release in a few weeks. Cheers Oli :) |
Off the top of my head you need to specify the directory? npx eslint src For example |
Hey @rathboma All good, i was being a muppet, had the terminal in the wrong directory lol. Thanks for the PR without the fixes, that was exactly what i needed, it has been really helpful to go through the issues one by one. Helped me understand about how eslint works and helped me to customize the rules a little more. I have pushed this to the 5.3 branch (which will be released in a few weeks), along with all the rule tweaks and all the fixes that eslint highlighted was needed. Ive also remove the warnings only setting so things are classed as errors now i understand the ruleset. Am i correct in assuming that once these have been merged into master, any future PR's will then automatically have the tests run because of the Cheers Oli :) |
Correct! Yeah it'll help folks solve those problems on their own |
@olifolkerd here's a much simpler start to your eslint journey:
dist
, or committed a yarn.lockSome things you could do next:
If you want to, you can run
npx eslint --fix
and it will auto-fix a number of issues (like # tabs for indentation), but you will end up with a big PR of changes, but that's easier to manage anyway.You could also enable eslint errors for all PRs and have it only look at changed files using a plugin like this:
https://github.com/tj-actions/eslint-changed-files
That way you could have contributors slowly fixing up your codebase as you go :-D