Skip to content

Commit

Permalink
fix dependent
Browse files Browse the repository at this point in the history
  • Loading branch information
JerryWu1234 committed Dec 12, 2024
1 parent 939f856 commit de7afde
Show file tree
Hide file tree
Showing 13 changed files with 1 addition and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ export const HelloWorld = component$(() => {
class Stuff {}
const stuff = new Stuff();
useTask$(() => {
/* eslint no-console: [, { allow: ["log"] }] */
console.log(stuff);

Check failure on line 8 in packages/eslint-plugin-qwik/tests/valid-lexical-scope/invalid-capture-class.tsx

View workflow job for this annotation

GitHub Actions / Lint Package

Unexpected console statement
});
return <div></div>;
Expand Down
Original file line number Diff line number Diff line change
@@ -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();

Check failure on line 4 in packages/eslint-plugin-qwik/tests/valid-lexical-scope/invalid-capture-function-event.tsx

View workflow job for this annotation

GitHub Actions / Lint Package

Unexpected console statement
return <button onClick$={click}></button>;
});
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@ export const HelloWorld = component$(() => {
return 'string';
} else {
return () => {
/* eslint no-console: [, { allow: ["log"] }] */
console.log();

Check failure on line 9 in packages/eslint-plugin-qwik/tests/valid-lexical-scope/invalid-capture-function.tsx

View workflow job for this annotation

GitHub Actions / Lint Package

Unexpected console statement
};
}
}
const a = getValue();
useTask$(() => {
/* eslint no-console: [, { allow: ["log"] }] */
console.log(a);

Check failure on line 15 in packages/eslint-plugin-qwik/tests/valid-lexical-scope/invalid-capture-function.tsx

View workflow job for this annotation

GitHub Actions / Lint Package

Unexpected console statement
});
return <div></div>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Check failure on line 7 in packages/eslint-plugin-qwik/tests/valid-lexical-scope/invalid-capture-symbol.tsx

View workflow job for this annotation

GitHub Actions / Lint Package

Unexpected console statement
});
return <div></div>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Check failure on line 9 in packages/eslint-plugin-qwik/tests/valid-lexical-scope/invalid-mutable.tsx

View workflow job for this annotation

GitHub Actions / Lint Package

Unexpected console statement
startX = e.pageX - divRef.value!.offsetLeft;
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export const HelloWorld = component$(() => {
};
const useMethod = getMethod();
useTask$(() => {
/* eslint no-console: [, { allow: ["log"] }] */
console.log(useMethod);

Check failure on line 10 in packages/eslint-plugin-qwik/tests/valid-lexical-scope/invalid-use-method-factory.tsx

View workflow job for this annotation

GitHub Actions / Lint Package

Unexpected console statement
});
return <div></div>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Check failure on line 6 in packages/eslint-plugin-qwik/tests/valid-lexical-scope/invalid-use-method-inline.tsx

View workflow job for this annotation

GitHub Actions / Lint Package

Unexpected console statement
}
useTask$(() => {
/* eslint no-console: [, { allow: ["log"] }] */
console.log(useMethod);

Check failure on line 9 in packages/eslint-plugin-qwik/tests/valid-lexical-scope/invalid-use-method-inline.tsx

View workflow job for this annotation

GitHub Actions / Lint Package

Unexpected console statement
});
return <div></div>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export default component$(() => {
state.foo = <div>Foo</div>;

useTask$(() => {
/* eslint no-console: [, { allow: ["log"] }] */
console.log(state.foo);

Check failure on line 12 in packages/eslint-plugin-qwik/tests/valid-lexical-scope/valid-capture-jsxoutput.tsx

View workflow job for this annotation

GitHub Actions / Lint Package

Unexpected console statement
});
return <></>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export const HelloWorld = component$(() => {
return (
<div
onClick$={() => {
/* eslint no-console: [, { allow: ["log"] }] */
console.log(a);
}}
></div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 <div></div>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export const HelloWorld = component$(() => {
},
};
useTask$(() => {
/* eslint no-console: [, { allow: ["log"] }] */
console.log(useMethod, obj);
});
return <div></div>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export const HelloWorld = component$(() => {
};
const useMethod = getMethod();
useTask$(() => {
/* eslint no-console: [, { allow: ["log"] }] */
console.log(useMethod);
});
return <div></div>;
Expand Down
2 changes: 1 addition & 1 deletion packages/insights/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit de7afde

Please sign in to comment.