tleunen / eslint-import-resolver-babel-module

Custom eslint resolve for babel-plugin-module-resolver
https://github.com/tleunen/babel-plugin-module-resolver
MIT License
248 stars 31 forks source link

fix(monorepo): fix babel options resolve #104

Open karolis-sh opened 5 years ago

karolis-sh commented 5 years ago

fix #102

I think I fixed the monorepo cases just the way they worked in babel 6.

EDIT: Though now that I think about it I'm not sure if this is the desired approach. This fixes the breaking change (for some users), but previous lookup by package.json seems more predictable as usually you babelify from child package not the root one. And there's the cwd option how that should work in monorepo 🧐

codecov[bot] commented 5 years ago

Codecov Report

Merging #104 into master will increase coverage by 0.1%. The diff coverage is 100%.

Impacted Files Coverage Δ
src/index.js 94.54% <100%> (+0.1%) :arrow_up:
codecov[bot] commented 5 years ago

Codecov Report

Merging #104 into master will increase coverage by 0.1%. The diff coverage is 100%.

Impacted Files Coverage Δ
src/index.js 94.54% <100%> (+0.1%) :arrow_up: