Skip to content

Conversation

sevenc-nanashi
Copy link

Relates #7930 (Maybe?)

Changes:

I fixed ESLint warnings in utils/**/*.mjs.

Screenshots of the change:

N/A

PR Checklist

Copy link

welcome bot commented Aug 27, 2025

🎉 Thanks for opening this pull request! For guidance on contributing, check out our contributor guidelines and other resources for contributors!
🤔 Please ensure that your PR links to an issue, which has been approved for work by a maintainer; otherwise, there might already be someone working on it, or still ongoing discussion about implementation. You are welcome to join the discussion in an Issue if you're not sure!
🌸 Once your PR is merged, be sure to add yourself to the list of contributors on the readme page !

Thank You!

}
let output = '// This file is auto-generated from JSDoc documentation\n\n';

output += 'declare class p5 {\n';
Copy link
Author

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.

Comment on lines +4658 to +4661
[
"Function",
"Object?"
],
Copy link
Author

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.

Comment on lines +534 to +539
const processOverload = overload => {
if (overload.params) {
return Object.values(overload.params).map(param => processParam(param));
}
return overload;
};
Copy link
Author

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.

@sevenc-nanashi sevenc-nanashi changed the title style: fix eslint warnings [dev-2.0] style: fix eslint warnings Aug 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant