TypeError: context.markVariableAsUsed is not a function
Occurred while linting xxx.tsx
Rule: "solid/jsx-uses-vars"
I found that context.markVariableAsUsed was deprecated at rules/jsx-uses-vars.ts#L40.
The source code from @typescript-eslint/utils:
/**
* Marks a variable with the given name in the current scope as used.
* This affects the no-unused-vars rule.
*
* @deprecated in favor of `SourceCode#markVariableAsUsed`
*/
markVariableAsUsed(name: string): boolean;
I found that
context.markVariableAsUsed
was deprecated at rules/jsx-uses-vars.ts#L40. The source code from@typescript-eslint/utils
: