Support having plugins as dependencies in shareable config
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
Solution: Support having plugins as dependencies in shareable config
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.
Trust Score
11 verifications
- 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
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
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep