-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[p5.js 2.x] chore: enable eslint rules #7930
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
base: dev-2.0
Are you sure you want to change the base?
[p5.js 2.x] chore: enable eslint rules #7930
Conversation
`comma-dangele`, `indent`, `linebreak-style`, `no-trailing-spaces`, `object-curly-spacing`, `quotes`, `semi`
…-duplicate-headings' rule
`jsdoc/check-alignment`, `jsdoc/no-multi-asterisks` `jsdoc/require-asterisk-prefix`
An early suggestion, I think in terms of warning vs error I would like it to be so that things that directly lead to unintended behavior or rather just the There are a few reasons I'm thinking of, the main one is in terms of cognitive understanding with a code editor linter, errors will be highlighted red which should be immediately actioned while warnings highlighted yellow can be dealt with later before commit. We can set ESLint to exit with non-zero exit code on warning as well to get the CI to fail on warning still I believe. That along with a functional eslint-fix should make code style easy enough to work with. Does that make sense to you or do you have a different idea? |
It makes perfect sense. I enabled the stylistic rules in order to get rid of the noise but that's not the correct intention. To get the CI to fail we'd have to use Once all the fixes we're applied one could reenable |
I don't use vscode that much, does |
Yep, that's the purpose of |
Hey there,
this PR is a follow-up to #7853 to discuss the usage of linter rules.
It does not include the fixed/applied changes of the rules because it would block other PRs or would result in a lot of rebasing and resolving merge conflicts. I'd argue that the fixes should be applied in separate PRs.
(Discussed rules were marked as completed)
eslint recommended
no-async-promise-executor errorno-cond-assign errorno-prototype-builtins errorno-undef errorcustom p5
Stylistic
jsdoc
@eslint/markdown