diff --git a/dist/index.cjs b/dist/index.cjs index abaac15..575cf15 100644 --- a/dist/index.cjs +++ b/dist/index.cjs @@ -18,14 +18,11 @@ const createScope = getData => event => { }; const getRepeater = event => { - // eslint-disable-next-line @typescript-eslint/no-explicit-any let node = event.target; if (event.context.type !== 'COMPONENT_SCOPE') { console.error(`repeater-scope: "#${node.id}" outside of any $w.Repeater context`); } - while ((node = node.parent).type !== '$w.Repeater') { - /**/ - } + while ((node = node.parent).type !== '$w.Repeater') {} return node; }; diff --git a/dist/index.js b/dist/index.js index 34f7f44..1665bf5 100644 --- a/dist/index.js +++ b/dist/index.js @@ -16,14 +16,11 @@ const createScope = getData => event => { }; const getRepeater = event => { - // eslint-disable-next-line @typescript-eslint/no-explicit-any let node = event.target; if (event.context.type !== 'COMPONENT_SCOPE') { console.error(`repeater-scope: "#${node.id}" outside of any $w.Repeater context`); } - while ((node = node.parent).type !== '$w.Repeater') { - /**/ - } + while ((node = node.parent).type !== '$w.Repeater') {} return node; }; diff --git a/rollup.config.js b/rollup.config.js index 7303960..9a7015a 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -31,6 +31,7 @@ export default { presets: [ '@babel/typescript', ], + comments: false, }) ] };