Skip to content

Commit

Permalink
update eslint-disable descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjermanovic committed Feb 20, 2024
1 parent 5da46b9 commit 4a23459
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ function filterKey(key) {
}


/* eslint-disable jsdoc/valid-types -- doesn't allow `readonly`. TODO: check why */
/* eslint-disable jsdoc/valid-types -- doesn't allow `readonly`.
TODO: remove eslint-disable when https://github.com/jsdoc-type-pratt-parser/jsdoc-type-pratt-parser/issues/164 is fixed
*/
/**
* Get visitor keys of a given node.
* @param {object} node The AST node to get keys.
Expand All @@ -34,7 +36,7 @@ function filterKey(key) {
export function getKeys(node) {
return Object.keys(node).filter(filterKey);
}
/* eslint-enable jsdoc/valid-types -- doesn't allow `readonly string[]`. TODO: check why */
/* eslint-enable jsdoc/valid-types -- doesn't allow `readonly` */

/**
* Make the union set with `KEYS` and given keys.
Expand Down
4 changes: 3 additions & 1 deletion lib/visitor-keys.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/* eslint-disable jsdoc/valid-types -- doesn't allow `readonly`. TODO: check why */
/* eslint-disable jsdoc/valid-types -- doesn't allow `readonly`.
TODO: remove eslint-disable when https://github.com/jsdoc-type-pratt-parser/jsdoc-type-pratt-parser/issues/164 is fixed
*/
/**
* @typedef {{ readonly [type: string]: ReadonlyArray<string> }} VisitorKeys
*/
Expand Down

0 comments on commit 4a23459

Please sign in to comment.