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.
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
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
and also in the .eslintrc.json
file
without luck.
Any ideas?