Skip to content

How to resolve local plugin or rule using old rc config file format? #18365

Answered by mdjermanovic
pawelgur asked this question in Q&A
Discussion options

You must be logged in to vote

The only way I managed to make it work is to do npm i ./eslint-plugin-example --save-dev which created symlink in node_modules which looks way too complicated for such simple thing as including local rule/plugin.

We're doing the same in the eslint project:

"eslint-plugin-internal-rules": "file:tools/internal-rules",

It indeed seems too complicated, but it's probably the best way to include local rules when using the eslintrc config format. The new flat config format is designed to make including local rules much easier.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pawelgur
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants