ESLint running against cached dependencies
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3582336. --> Reported by: [tim.plunkett](https://www.drupal.org/user/241634) Related to !822 >>> <h3 id="overview">Overview</h3> <p>Pipelines on recent MRs are failing with eslint on dependencies.</p> <pre>/builds/project/canvas/.cache/ms-playwright/chromium-1208/chrome-linux64/resources/accessibility/reading_mode_gdocs_helper/content.js<br>&nbsp; 9:13&nbsp; error&nbsp; 'chrome' is not defined&nbsp; no-undef<br>/builds/project/canvas/.cache/ms-playwright/chromium-1208/chrome-linux64/resources/accessibility/reading_mode_gdocs_helper/gdocs_script.js<br>&nbsp;&nbsp; 6:8&nbsp;&nbsp; error&nbsp; 'chrome' is not defined&nbsp; no-undef<br>&nbsp;&nbsp; 6:27&nbsp; error&nbsp; 'chrome' is not defined&nbsp; no-undef<br>&nbsp; 22:25&nbsp; error&nbsp; 'chrome' is not defined&nbsp; no-undef<br>/builds/project/canvas/.cache/ms-playwright/chromium-1208/chrome-linux64/resources/inspector_overlay/main.js<br>&nbsp; 1:41745&nbsp; error&nbsp; Unexpected aliasing of 'this' to local variable&nbsp; @typescript-eslint/no-this-alias<br>/builds/project/canvas/.cache/ms-playwright/firefox-1509/firefox/browser/defaults/preferences/00-playwright-prefs.js<br>&nbsp; 2:1&nbsp; error&nbsp; 'pref' is not defined&nbsp; no-undef<br>&nbsp; 3:1&nbsp; error&nbsp; 'pref' is not defined&nbsp; no-undef<br>/builds/project/canvas/.cache/ms-playwright/firefox-1509/firefox/defaults/pref/channel-prefs.js<br>&nbsp; 9:1&nbsp; error&nbsp; 'pref' is not defined&nbsp; no-undef<br>&#10006; 8 problems (8 errors, 0 warnings)<br>ERROR: "lint:eslint" exited with 1.</pre><p><a href="http://project.pages.drupalcode.org/-/canvas/-/jobs/9160336/artifacts/ui-eslint-junit.xml">http://project.pages.drupalcode.org/-/canvas/-/jobs/9160336/artifacts/ui-eslint-junit.xml</a></p> <p>This is likely from <span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/canvas/-/work_items/3554549" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/canvas/-/work_items/3554549</a></span> as that introduces the .cache directory.</p> <h3 id="proposed-resolution">Proposed resolution</h3> <h3 id="ui-changes">User interface changes</h3>
issue