From 4a2345950007327e66a2ef7cd171d9ec86946418 Mon Sep 17 00:00:00 2001 From: Milos Djermanovic Date: Tue, 20 Feb 2024 18:24:23 +0100 Subject: [PATCH] update eslint-disable descriptions --- lib/index.js | 6 ++++-- lib/visitor-keys.js | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/index.js b/lib/index.js index 5381468..b4bb643 100644 --- a/lib/index.js +++ b/lib/index.js @@ -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. @@ -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. diff --git a/lib/visitor-keys.js b/lib/visitor-keys.js index ce3ae3a..f54a347 100644 --- a/lib/visitor-keys.js +++ b/lib/visitor-keys.js @@ -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 }} VisitorKeys */