Allow devDependency imports in TypeScript spec files - #1844
Open
PaulHax wants to merge 2 commits into
Open
Conversation
Enable --report-unused-disable-directives in the client lint script so unnecessary suppressions fail the gate, and drop the directives that no longer suppress anything.
Airbnb's import/no-extraneous-dependencies allowlist only covers .js and .jsx test files, so every TypeScript spec needed a hand-written disable comment. Scope the rule to permit devDependencies in *.spec.ts and drop the now-redundant suppressions.
This was referenced Aug 14, 2026
PaulHax
marked this pull request as ready for review
August 14, 2026 03:45
BryonLewis
self-requested a review
August 14, 2026 11:58
BryonLewis
approved these changes
Aug 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Allow devDependency imports in TypeScript spec files
The client lint command did not report unused ESLint directives. As a result, obsolete directives
could remain after the related lint errors were fixed.
The Airbnb
import/no-extraneous-dependenciesrule also permits test dependencies only inJavaScript test files. TypeScript spec files needed a manual directive when they imported
vitestor
@vue/test-utils.Changes
**/*.spec.tsfiles.This PR does not change application or test behavior. It changes the lint gate and removes obsolete
lint comments.
Hierarchy prerequisite
The hierarchy PRs add TypeScript spec files that import devDependencies, so this change lets them
pass the stricter lint gate without manual suppressions.
Stack
This is PR 1 of 9. Next: preserve Desktop import warnings.
This PR contains 2 commits on
origin/main:455c1524 Remove stale eslint-disable directives637984a3 Allow devDependency imports in spec filesOverall: 64 files, +18/-89.