correctness/useQwikMethodUsage
correctness · since 2.2.6
No autofixRecommended
biome.json
{
"linter": {
"rules": {
"correctness": {
"useQwikMethodUsage": "error"
}
}
}
}import { useSignal } from "@builder.io/qwik";
export const Counter = () => {
const count = useSignal(0);
};import { component$, useSignal } from "@builder.io/qwik";
export const Counter = component$(() => {
const count = useSignal(0);
});
export const useCounter = () => {
const count = useSignal(0);
return count;
};Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
correctness/useQwikMethodUsage
correctness · since 2.2.6
{
"linter": {
"rules": {
"correctness": {
"useQwikMethodUsage": "error"
}
}
}
}Enforce that Qwik loader functions are declared in the correct location.
Disallow unserializable expressions in Qwik dollar ($) scopes.
Prefer using the class prop as a classlist over the classnames helper.
Require functions with the "use server" directive to be async.
Enforce valid describe() callback.
Ensure that platform-specific React Native components are only imported in files named for that platform.