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
We're now getting eslint errors about unused eslint-disable-next-line directives.
Steps to Reproduce
Run npm run lint:typescript:nofix
Result
Warnings like
/Users/ericp/workspace/rancher/desktop/pkg/rancher-desktop/utils/childProcess.ts
18:1 warning Unused eslint-disable directive (no problems were reported from 'no-redeclare')
147:1 warning Unused eslint-disable directive (no problems were reported from 'no-redeclare')
Expected Behavior
We used to not get warnings, although that might have been a mistake if the directive wasn't on.
Rancher Desktop Version
1.7.0 dev
Rancher Desktop K8s Version
Happens on all platforms.
The text was updated successfully, but these errors were encountered:
This bug doesn't affect CI because if these are the only warnings the code emits, it exits with status 0. But if you run eslint with the --report-unused-disable-directives option, you get errors instead of warnings, and the linter exists with status 1. But we don't use that flag anywhere.
I'll push a draft-PR with the changes, but it still doesn't make sense. Maybe some directives aren't taking effect because we haven't enabled the change (see the PR), but when we do enable it, we still get unused-directive warnings.
We stopped processing the disable-directives at 2f4887a (Thu Mar 10 15:17:50 2022 -0800) -- the preceding commit 7203f7d might have introduced the problem, but I can't run npm i with it because of dependency problems.
Actual Behavior
We're now getting eslint errors about unused eslint-disable-next-line directives.
Steps to Reproduce
Run
npm run lint:typescript:nofix
Result
Warnings like
Expected Behavior
We used to not get warnings, although that might have been a mistake if the directive wasn't on.
Rancher Desktop Version
1.7.0 dev
Rancher Desktop K8s Version
Happens on all platforms.
The text was updated successfully, but these errors were encountered: