-
Notifications
You must be signed in to change notification settings - Fork 219
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
bump eslint-plugin-jsdoc #5269
bump eslint-plugin-jsdoc #5269
Conversation
I remember some problem with using |
Oh my. Indeed. Though it appears to do the same for |
Right, |
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.
I need to pay closer attention to all the changes, and do some experiments in the TS Playground.
While Object
-> object
should be safe for any @typedef {object}
or @param {object}
used as the base of other @param
, I'm not certain when used as return values or in TS style functions types it'd be safe.
I agree it would be great to fix all our Object
usages, as they're all most likely wrong, but I'd rather get it right than change it into another wrong. Maybe we can file an issue and pick this up after MN-1, or there was a motivation for this change now besides declared support for Node 18?
* @param {(baseRef: string) => Object} fetch Function to retrieve an | ||
* @param {(baseRef: string) => object} fetch Function to retrieve an | ||
* object's raw state from the store by its baseRef | ||
* @param {(baseRef: string, rawState: Object) => void} store Function to | ||
* @param {(baseRef: string, rawState: object) => void} store Function to |
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.
Here is potentially a place where it'd revert back to any
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.
@@ -140,7 +140,7 @@ export function makeCache(size, fetch, store) { | |||
* of virtual references. | |||
* @param {() => number} allocateExportID Function to allocate the next object | |||
* export ID for the enclosing vat. | |||
* @param { (val: Object) => string} getSlotForVal A function that returns the | |||
* @param {(val: object) => string} getSlotForVal A function that returns the |
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.
I believe it's the same here, val
would now become an any
type.
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.
now become an
any
type
Again, already was.
What are your concerns? From what I see, all the
Yes, motivation was to update the dep to support Node 18. I thought fixing the warnings would be good to include now and safe. If you don't think so I can remove that and suppress the warnings instead. But based on…
Will you Approve so I can merge? |
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.
What are your concerns? From what I see, all the
Object
areany
before and after.
I had missed that all usages of Object
also resulted in any
, making it strictly equivalent to object
in JSDoc.
As long as we've confirmed that there is no side-effect on tsc checks from using object, I'm ok with this change
Will you Approve so I can merge?
Given that Object
and object
are as bad as each other in all usages, approved.
Description
The version we have would error when doing
yarn install
under Node 18. (not in its list of supported engines)The latest version changed gajus/eslint-plugin-jsdoc#855 to align more with TypeScript. This fixes those warnings too (mostly with
yarn lint-fix
and then manually a few stragglers)Security Considerations
--
Documentation Considerations
--
Testing Considerations
--