You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function initCurveBuffer(gl: any, func: (t: number) => Point, num: number) { ... }
In the function above, if func is used in the function, eslint should not be highlighting any errors.
Current Behavior
Eslint saying that t is defined but never used, although func is used somewhere in the function.
Failure Information
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
Open your favourite editor. (ie. VSCode)
Write the following function in any .ts file under src directory.
function initCurveBuffer(gl: any, func: (t: number) => Point, num: number) {
const num = 0;
for (let i = 0; i <= num; i += 1) {
const point = func(i / num);
}
}
Enjoy the erroneous (and irritating) eslint errors!
Context
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.
Expected Behavior
In the function above, if
func
is used in the function, eslint should not be highlighting any errors.Current Behavior
Eslint saying that
t
is defined but never used, althoughfunc
is used somewhere in the function.Failure Information
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
.ts
file undersrc
directory.Context
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.
Failure Logs
N/A
The text was updated successfully, but these errors were encountered: