-
EnvironmentNode version: v18.15.0 Local ESLint version: 8.57.0 What parser are you using?@typescript-eslint/parser What did you do?In a yarn monorepo I have one package called @corporate/eslint containing the following eslint config:
In a sibling package I am trying to extend this config using:
What did you expect to happen?When running lerna run lint:fix --scope @corporate/sibling What actually happened?Instead I get an error:
Link to Minimal Reproducible Examplehttps://github.com/sashokbg/eslint-sharable-config Participation
Additional commentsI tried activating hoisting both on workspace and package level, but it didn't work. What worked however is to reference the node_modules directory like so:
In the example repo run "lerna run lint" to reproduce |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @sashokbg, this is happening because your config is not following the naming convention ESLint has in place for shareable configs. Config name should be prefixed with |
Beta Was this translation helpful? Give feedback.
Hi @sashokbg, this is happening because your config is not following the naming convention ESLint has in place for shareable configs. Config name should be prefixed with
eslint-config
, so your config name should be@corporate/eslint-config-lint
.