FG
🛠️ Developer Tools

Support having plugins as dependencies in shareable config

Freshover 3 years ago
Mar 14, 20260 views
Confidence Score79%
79%

Problem

My shareable config uses rules from an external plugin and I would like to make it a `dependency` so the user doesn't have to manually install the plugin manually. I couldn't find any docs on this, but it doesn't seem to work, so I'll assume it's not currently supported. [code block] I assume it's because you only try to load the plugin when the config is finished merging. Other shareable configs that depend on a plugin instructs the users to manually install the plugin too and they have it in `peerDependencies`. I find this sub-optimal though and I don't want the users to have to care what plugins my config uses internally. The whole point of shareable configs is to minimize boilerplate and overhead, so this would be a welcome improvement. <bountysource-plugin> Want to back this issue? Post a bounty on it! We accept bounties via Bountysource. </bountysource-plugin>

Error Output

Error: Cannot find module 'eslint-plugin-no-use-extend-native'

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
High Confidence Fix
75% confidence93% success rate11 verificationsLast verified Mar 14, 2026

Solution: Support having plugins as dependencies in shareable config

Low Risk

Ugh, that's such a leaky abstraction. I guess I won't use plugins then... The user shouldn't have to care what plugins I use for the rules. This is like requiring to manual install of Lodash when you want ESLint. A shareable config is a node module and should act like it.

75

Trust Score

11 verifications

93% success
  1. 1

    Ugh, that's such a leaky abstraction. I guess I won't use plugins then...

    Ugh, that's such a leaky abstraction. I guess I won't use plugins then...

  2. 2

    The user shouldn't have to care what plugins I use for the rules. This is like r

    The user shouldn't have to care what plugins I use for the rules. This is like requiring to manual install of Lodash when you want ESLint. A shareable config is a node module and should act like it.

Validation

Resolved in eslint/eslint GitHub issue #3458. Community reactions: 245 upvotes.

Verification Summary

Worked: 11
Partial: 2
Failed: 1
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

eslintlintingjavascriptbacklogcoreneeds-bikesheddingevaluating