Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove eslint-plugin-import #54835

Merged
merged 2 commits into from
Jul 14, 2023

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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