0

I have a published React library with a dist folder where I export numerous default React components for other projects and I would like to export my eslint config from there.

enter image description here

I've seen people do it in basic npm packages in the main index.js file, but I would like to export everything from one package and not rely on a second package for the eslint config.

I added all my rules to /src/components/eslint/index.js - this then gets translated into /dist/eslint/index.js

enter image description here

Is there any way to import this specific index.js with my eslint rules as eslint config in another project?

In another project I already tried linking it in package.json

enter image description here

and also in the .eslintrc.json file

enter image description here

without luck.

Any ideas?

Claim
  • 775
  • 3
  • 12
  • 32

0 Answers0