Commit a4c2741
Remove unused @types/eslint and mock-require dependencies (#1998)
## Why
Three devDependencies in `packages/databricks-vscode` are declared but
**never referenced** anywhere in source, scripts, or config:
- **`@types/eslint`** — a legacy community type stub for older ESLint.
The only custom lint rule (`mutexSynchronisedDecorator`) is typed via
`@typescript-eslint/utils`, and modern ESLint (9+) ships its own types.
Dependabot opened #1994 to bump it `8.56.12 → 9.6.1`, but bumping an
unused package is churn. **This PR supersedes #1994**, which can be
closed.
- **`mock-require` + `@types/mock-require`** — an unused mocking helper
(last published 2019) and its types. Test code uses `ts-mockito`, not
`mock-require`.
Removing them cleans up dead weight and shrinks the surface for the
eventual ESLint 9/10 flat-config migration.
## What
- Drop `@types/eslint`, `mock-require`, and `@types/mock-require` from
`packages/databricks-vscode/package.json`.
- Regenerate `yarn.lock`; this also drops now-orphaned transitive deps
with no other dependents:
- via `@types/eslint`: `@types/estree`, `@types/json-schema`
- via `mock-require`: `get-caller-file@^1`, `normalize-path@^2`,
`remove-trailing-separator`
## Verification
- Confirmed **zero references** for all three: no imports, no API-type
usage (`Rule`/`Linter`/`ESLint`), not in any tsconfig `types` array —
only the package.json declaration lines.
- `yarn.lock` confirms all were **direct deps only** (not transitive);
every orphaned transitive dep confirmed to have **0 remaining refs**.
- `tsc --build --force` (workspace TypeScript 6.0.3): **exit 0**, no
errors.
- `yarn test:lint` (eslint + prettier): **exit 0**, custom local rule
intact.
## Backward compatibility
Dev-tooling only — no shipped extension code or behavior changes. No
user-facing compatibility impact.
This pull request and its description were written by Isaac.
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Happy <yesreply@happy.engineering>1 parent 2d78c22 commit a4c2741
2 files changed
Lines changed: 0 additions & 70 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1564 | 1564 | | |
1565 | 1565 | | |
1566 | 1566 | | |
1567 | | - | |
1568 | 1567 | | |
1569 | 1568 | | |
1570 | 1569 | | |
1571 | | - | |
1572 | 1570 | | |
1573 | 1571 | | |
1574 | 1572 | | |
| |||
1592 | 1590 | | |
1593 | 1591 | | |
1594 | 1592 | | |
1595 | | - | |
1596 | 1593 | | |
1597 | 1594 | | |
1598 | 1595 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1573 | 1573 | | |
1574 | 1574 | | |
1575 | 1575 | | |
1576 | | - | |
1577 | | - | |
1578 | | - | |
1579 | | - | |
1580 | | - | |
1581 | | - | |
1582 | | - | |
1583 | | - | |
1584 | | - | |
1585 | | - | |
1586 | | - | |
1587 | | - | |
1588 | | - | |
1589 | | - | |
1590 | | - | |
1591 | | - | |
1592 | | - | |
1593 | 1576 | | |
1594 | 1577 | | |
1595 | 1578 | | |
| |||
1646 | 1629 | | |
1647 | 1630 | | |
1648 | 1631 | | |
1649 | | - | |
1650 | | - | |
1651 | | - | |
1652 | | - | |
1653 | | - | |
1654 | | - | |
1655 | | - | |
1656 | 1632 | | |
1657 | 1633 | | |
1658 | 1634 | | |
| |||
1676 | 1652 | | |
1677 | 1653 | | |
1678 | 1654 | | |
1679 | | - | |
1680 | | - | |
1681 | | - | |
1682 | | - | |
1683 | | - | |
1684 | | - | |
1685 | | - | |
1686 | 1655 | | |
1687 | 1656 | | |
1688 | 1657 | | |
| |||
4019 | 3988 | | |
4020 | 3989 | | |
4021 | 3990 | | |
4022 | | - | |
4023 | 3991 | | |
4024 | 3992 | | |
4025 | 3993 | | |
4026 | 3994 | | |
4027 | | - | |
4028 | 3995 | | |
4029 | 3996 | | |
4030 | 3997 | | |
| |||
4059 | 4026 | | |
4060 | 4027 | | |
4061 | 4028 | | |
4062 | | - | |
4063 | 4029 | | |
4064 | 4030 | | |
4065 | 4031 | | |
| |||
5623 | 5589 | | |
5624 | 5590 | | |
5625 | 5591 | | |
5626 | | - | |
5627 | | - | |
5628 | | - | |
5629 | | - | |
5630 | | - | |
5631 | | - | |
5632 | | - | |
5633 | 5592 | | |
5634 | 5593 | | |
5635 | 5594 | | |
| |||
7804 | 7763 | | |
7805 | 7764 | | |
7806 | 7765 | | |
7807 | | - | |
7808 | | - | |
7809 | | - | |
7810 | | - | |
7811 | | - | |
7812 | | - | |
7813 | | - | |
7814 | | - | |
7815 | | - | |
7816 | | - | |
7817 | 7766 | | |
7818 | 7767 | | |
7819 | 7768 | | |
| |||
8004 | 7953 | | |
8005 | 7954 | | |
8006 | 7955 | | |
8007 | | - | |
8008 | | - | |
8009 | | - | |
8010 | | - | |
8011 | | - | |
8012 | | - | |
8013 | | - | |
8014 | | - | |
8015 | | - | |
8016 | 7956 | | |
8017 | 7957 | | |
8018 | 7958 | | |
| |||
8993 | 8933 | | |
8994 | 8934 | | |
8995 | 8935 | | |
8996 | | - | |
8997 | | - | |
8998 | | - | |
8999 | | - | |
9000 | | - | |
9001 | | - | |
9002 | | - | |
9003 | 8936 | | |
9004 | 8937 | | |
9005 | 8938 | | |
| |||
0 commit comments