FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Remove eslint-plugin-import by jakebailey · Pull Request #54835 · microsoft/TypeScript · GitHub

Remove eslint-plugin-import - #54835

Merged
Jake Bailey (jakebailey) merged 2 commits into
microsoft:mainfrom
jakebailey:remove-eslint-plugin-import
Jul 14, 2023
Merged

Remove eslint-plugin-import#54835
Jake Bailey (jakebailey) merged 2 commits into
microsoft:mainfrom
jakebailey:remove-eslint-plugin-import

Conversation

Copy link
Copy Markdown
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.

Jake Bailey (jakebailey) merged commit 2b4bf5a into microsoft:main Jul 14, 2023
Jake Bailey (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
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 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


Back | FazBrowse Home | New Git URL