Skip to content

Conversation

@jakebailey
Copy link
Member

We use this plugin for only one rule, no-extraneous-dependencies, to verify that we don't import a package which isn't listed in our package.json.

In our repo, this plugin weighs in at 61 dependencies (out of 368, ~17%). Removing it speeds up npm ci by ~20%, and linting itself by roughly 2%.

I think there's a cost/benefit ratio when it comes to this kind of thing. TypeScript is notoriously dependency-free so I think we're going to already take heed when reviewing any PR which introduces any new import/require (which, hasn't happened in a long time), and we could revive it if this starts to not be true anymore.

@typescript-bot typescript-bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Jun 29, 2023
@jakebailey jakebailey merged commit 2b4bf5a into microsoft:main Jul 14, 2023
@jakebailey jakebailey deleted the remove-eslint-plugin-import branch July 14, 2023 23:01
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants