-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[dev-2.0] style: fix eslint warnings #8055
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?
[dev-2.0] style: fix eslint warnings #8055
Conversation
🎉 Thanks for opening this pull request! For guidance on contributing, check out our contributor guidelines and other resources for contributors! Thank You! |
} | ||
let output = '// This file is auto-generated from JSDoc documentation\n\n'; | ||
|
||
output += 'declare class p5 {\n'; |
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.
The quotes
rule looks too aggressive...
I think it's okay to allow backticks in any case.
[ | ||
"Function", | ||
"Object?" | ||
], |
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.
parameterData.json
might be out of date. I think it's nice to have a CI that checks parameterData.json is up-to-date.
const processOverload = overload => { | ||
if (overload.params) { | ||
return Object.values(overload.params).map(param => processParam(param)); | ||
} | ||
return overload; | ||
}; |
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.
ESLint warned that processOverload
comes before processParam
, thus it might call uninitialized variable. This is why I moved this code.
Relates #7930 (Maybe?)
Changes:
I fixed ESLint warnings in
utils/**/*.mjs
.case
branch which defines variableScreenshots of the change:
N/A
PR Checklist
npm run lint
passes