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 =
Foo
; useTask$(() => { - /* eslint no-console: [, { allow: ["log"] }] */ console.log(state.foo); }); return <>; diff --git a/packages/eslint-plugin-qwik/tests/valid-lexical-scope/valid-constant.tsx b/packages/eslint-plugin-qwik/tests/valid-lexical-scope/valid-constant.tsx index d582d61e0fc..5821ea0d2d9 100644 --- a/packages/eslint-plugin-qwik/tests/valid-lexical-scope/valid-constant.tsx +++ b/packages/eslint-plugin-qwik/tests/valid-lexical-scope/valid-constant.tsx @@ -7,7 +7,6 @@ export const HelloWorld = component$(() => { return (
{ - /* eslint no-console: [, { allow: ["log"] }] */ console.log(a); }} >
diff --git a/packages/eslint-plugin-qwik/tests/valid-lexical-scope/valid-no-serialize.tsx b/packages/eslint-plugin-qwik/tests/valid-lexical-scope/valid-no-serialize.tsx index 61f5d8f5483..5582a906f49 100644 --- a/packages/eslint-plugin-qwik/tests/valid-lexical-scope/valid-no-serialize.tsx +++ b/packages/eslint-plugin-qwik/tests/valid-lexical-scope/valid-no-serialize.tsx @@ -10,7 +10,6 @@ export function getFn(): NoSerialize<() => void> { export const HelloWorld = component$(() => { const state: Value = { value: 12, fn: getFn() }; useTask$(() => { - /* eslint no-console: [, { allow: ["log"] }] */ console.log(state.value); }); return
; diff --git a/packages/eslint-plugin-qwik/tests/valid-lexical-scope/valid-use-method-factory.tsx b/packages/eslint-plugin-qwik/tests/valid-lexical-scope/valid-use-method-factory.tsx index 9e13c458bbd..33fbe23080c 100644 --- a/packages/eslint-plugin-qwik/tests/valid-lexical-scope/valid-use-method-factory.tsx +++ b/packages/eslint-plugin-qwik/tests/valid-lexical-scope/valid-use-method-factory.tsx @@ -19,7 +19,6 @@ export const HelloWorld = component$(() => { }, }; useTask$(() => { - /* eslint no-console: [, { allow: ["log"] }] */ console.log(useMethod, obj); }); return
; diff --git a/packages/eslint-plugin-qwik/tests/valid-lexical-scope/valid-use-task.tsx b/packages/eslint-plugin-qwik/tests/valid-lexical-scope/valid-use-task.tsx index ff7aa58e94d..c93d9483354 100644 --- a/packages/eslint-plugin-qwik/tests/valid-lexical-scope/valid-use-task.tsx +++ b/packages/eslint-plugin-qwik/tests/valid-lexical-scope/valid-use-task.tsx @@ -6,7 +6,6 @@ export const HelloWorld = component$(() => { }; const useMethod = getMethod(); useTask$(() => { - /* eslint no-console: [, { allow: ["log"] }] */ console.log(useMethod); }); return
; diff --git a/packages/insights/package.json b/packages/insights/package.json index 55033571683..16641354707 100644 --- a/packages/insights/package.json +++ b/packages/insights/package.json @@ -51,8 +51,8 @@ "build.types": "tsc --incremental --noEmit", "db.local": "turso dev --db-file ./tmp/local.db", "db.migrate": "node scripts/db.migrate.cjs", - "db.migrate.up": "./node_modules/.bin/drizzle-kit up", "db.migrate.generate": "./node_modules/.bin/drizzle-kit generate", + "db.migrate.up": "./node_modules/.bin/drizzle-kit up", "db.studio": "./node_modules/.bin/drizzle-kit studio --verbose", "deploy": "netlify deploy --build", "dev": "vite --mode ssr",