From de7afde9acf065273f1a4c1343023e83d89277e8 Mon Sep 17 00:00:00 2001 From: JerryWu <409187100@qq.com> Date: Thu, 12 Dec 2024 09:40:15 +0800 Subject: [PATCH] fix dependent --- .../tests/valid-lexical-scope/invalid-capture-class.tsx | 1 - .../valid-lexical-scope/invalid-capture-function-event.tsx | 1 - .../tests/valid-lexical-scope/invalid-capture-function.tsx | 2 -- .../tests/valid-lexical-scope/invalid-capture-symbol.tsx | 1 - .../tests/valid-lexical-scope/invalid-mutable.tsx | 1 - .../tests/valid-lexical-scope/invalid-use-method-factory.tsx | 1 - .../tests/valid-lexical-scope/invalid-use-method-inline.tsx | 2 -- .../tests/valid-lexical-scope/valid-capture-jsxoutput.tsx | 1 - .../tests/valid-lexical-scope/valid-constant.tsx | 1 - .../tests/valid-lexical-scope/valid-no-serialize.tsx | 1 - .../tests/valid-lexical-scope/valid-use-method-factory.tsx | 1 - .../tests/valid-lexical-scope/valid-use-task.tsx | 1 - packages/insights/package.json | 2 +- 13 files changed, 1 insertion(+), 15 deletions(-) diff --git a/packages/eslint-plugin-qwik/tests/valid-lexical-scope/invalid-capture-class.tsx b/packages/eslint-plugin-qwik/tests/valid-lexical-scope/invalid-capture-class.tsx index 5d5af6e8a7f..036aebca3df 100644 --- a/packages/eslint-plugin-qwik/tests/valid-lexical-scope/invalid-capture-class.tsx +++ b/packages/eslint-plugin-qwik/tests/valid-lexical-scope/invalid-capture-class.tsx @@ -5,7 +5,6 @@ export const HelloWorld = component$(() => { class Stuff {} const stuff = new Stuff(); useTask$(() => { - /* eslint no-console: [, { allow: ["log"] }] */ console.log(stuff); }); return
; diff --git a/packages/eslint-plugin-qwik/tests/valid-lexical-scope/invalid-capture-function-event.tsx b/packages/eslint-plugin-qwik/tests/valid-lexical-scope/invalid-capture-function-event.tsx index 1be3e26ab2d..b332c0c1a5c 100644 --- a/packages/eslint-plugin-qwik/tests/valid-lexical-scope/invalid-capture-function-event.tsx +++ b/packages/eslint-plugin-qwik/tests/valid-lexical-scope/invalid-capture-function-event.tsx @@ -1,7 +1,6 @@ // Expect error: { "messageId": "invalidJsxDollar" } import { component$, useTask$ } from '@builder.io/qwik'; export const HelloWorld = component$(() => { - /* eslint no-console: [, { allow: ["log"] }] */ const click = () => console.log(); return ; }); diff --git a/packages/eslint-plugin-qwik/tests/valid-lexical-scope/invalid-capture-function.tsx b/packages/eslint-plugin-qwik/tests/valid-lexical-scope/invalid-capture-function.tsx index 5571d9509d8..f7482c38236 100644 --- a/packages/eslint-plugin-qwik/tests/valid-lexical-scope/invalid-capture-function.tsx +++ b/packages/eslint-plugin-qwik/tests/valid-lexical-scope/invalid-capture-function.tsx @@ -6,14 +6,12 @@ export const HelloWorld = component$(() => { return 'string'; } else { return () => { - /* eslint no-console: [, { allow: ["log"] }] */ console.log(); }; } } const a = getValue(); useTask$(() => { - /* eslint no-console: [, { allow: ["log"] }] */ console.log(a); }); return ; diff --git a/packages/eslint-plugin-qwik/tests/valid-lexical-scope/invalid-capture-symbol.tsx b/packages/eslint-plugin-qwik/tests/valid-lexical-scope/invalid-capture-symbol.tsx index f4399b57c05..f76a615123d 100644 --- a/packages/eslint-plugin-qwik/tests/valid-lexical-scope/invalid-capture-symbol.tsx +++ b/packages/eslint-plugin-qwik/tests/valid-lexical-scope/invalid-capture-symbol.tsx @@ -4,7 +4,6 @@ import { component$, useTask$ } from '@builder.io/qwik'; export const HelloWorld = component$(() => { const a = Symbol(); useTask$(() => { - /* eslint no-console: [, { allow: ["log"] }] */ console.log(a); }); return ; diff --git a/packages/eslint-plugin-qwik/tests/valid-lexical-scope/invalid-mutable.tsx b/packages/eslint-plugin-qwik/tests/valid-lexical-scope/invalid-mutable.tsx index ab19d294c47..fed858b5cbc 100644 --- a/packages/eslint-plugin-qwik/tests/valid-lexical-scope/invalid-mutable.tsx +++ b/packages/eslint-plugin-qwik/tests/valid-lexical-scope/invalid-mutable.tsx @@ -6,7 +6,6 @@ export const HelloWorld = component$(() => { const divRef = useSignal<{ offsetLeft: number }>(); const handleMouseDown = $((e: MouseEvent) => { - /* eslint no-console: [, { allow: ["log"] }] */ console.log('working'); startX = e.pageX - divRef.value!.offsetLeft; }); diff --git a/packages/eslint-plugin-qwik/tests/valid-lexical-scope/invalid-use-method-factory.tsx b/packages/eslint-plugin-qwik/tests/valid-lexical-scope/invalid-use-method-factory.tsx index d81fbeceb12..c601d096a3b 100644 --- a/packages/eslint-plugin-qwik/tests/valid-lexical-scope/invalid-use-method-factory.tsx +++ b/packages/eslint-plugin-qwik/tests/valid-lexical-scope/invalid-use-method-factory.tsx @@ -7,7 +7,6 @@ export const HelloWorld = component$(() => { }; const useMethod = getMethod(); useTask$(() => { - /* eslint no-console: [, { allow: ["log"] }] */ console.log(useMethod); }); return ; diff --git a/packages/eslint-plugin-qwik/tests/valid-lexical-scope/invalid-use-method-inline.tsx b/packages/eslint-plugin-qwik/tests/valid-lexical-scope/invalid-use-method-inline.tsx index 38f7a7015b1..73a91234561 100644 --- a/packages/eslint-plugin-qwik/tests/valid-lexical-scope/invalid-use-method-inline.tsx +++ b/packages/eslint-plugin-qwik/tests/valid-lexical-scope/invalid-use-method-inline.tsx @@ -3,11 +3,9 @@ import { component$, useTask$ } from '@builder.io/qwik'; export const HelloWorld = component$(() => { function useMethod() { - /* eslint no-console: [, { allow: ["log"] }] */ console.log('stuff'); } useTask$(() => { - /* eslint no-console: [, { allow: ["log"] }] */ console.log(useMethod); }); return ; diff --git a/packages/eslint-plugin-qwik/tests/valid-lexical-scope/valid-capture-jsxoutput.tsx b/packages/eslint-plugin-qwik/tests/valid-lexical-scope/valid-capture-jsxoutput.tsx index 6fa20dbd74b..fd583b93271 100644 --- a/packages/eslint-plugin-qwik/tests/valid-lexical-scope/valid-capture-jsxoutput.tsx +++ b/packages/eslint-plugin-qwik/tests/valid-lexical-scope/valid-capture-jsxoutput.tsx @@ -9,7 +9,6 @@ export default component$(() => { state.foo =