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
Oops, that's my fault. We should probably disable the former, and apply the configuration we currently have for that rule to the TS version. Unless the TS version doesn't lint JS files, which I'm not sure about.
Actually, I built a quick little ESLint error/warning summarizer and ran it against the nextjs branch.
Looks like we should probably disable the jsdoc/* rule set which would remove about 79% of the warnings.
Disabling @typescript-eslint/no-explicit-any and @typescript-eslint/no-unused-vars would solve another 19% of the warnings.
importcpfrom"node:child_process";import{inspect}from"node:util";constERROR_REGEXP=/^\s+\d+:\d+\s+(warning|error)\s+.*\s(.*?)$/i;consterrorMap={};letsummary;try{cp.execSync("npm run lint:js");}catch(err){conststderr=err.stdout.toString().split("\n");for(constlineofstderr){if(ERROR_REGEXP.test(line)){const[,type,rule]=line.match(ERROR_REGEXP);errorMap[type]=errorMap[type]||{};errorMap[type][rule]=(errorMap[type][rule]||0)+1;}if(line.startsWith("✖")){summary=line;}}}console.log(inspect({ ...errorMap,_summary: summary},{sorted: true}));
Was trying to find some ESLint errors in Circle-CI logs for a recent PR and noticed we currently have aboot 133 warnings.
npm run lint:js … ✖ 133 problems (0 errors, 133 warnings) 0 errors and 1 warning potentially fixable with the `--fix` option.
A bit of ugly grep-ing shows that about 99/133 of the warnings are jsdoc/* related.
We should probably either fix or mute those warnings, since it makes finding errors amongst the noise needlessly difficult.
As for the remaining warnings:
Also seems fishy that we have both ESLint
no-unused-vars
and TypeScript-y@typescript-eslint/no-unused-vars
rules enabled. Per the typescript-eslint docs:The text was updated successfully, but these errors were encountered: