Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

Conversation

philippe-desplats
Copy link

Hi everyone,

I propose this PR in order to solve a problem related to estraverse dependency which is used in ./lib/patch-eslint-scope.js. Currently babel-eslint import this dependency from eslintMod (allows to import the module of eslint) except this is a problem because estraverse isn't a dependency used by eslint. This produce an error when we use the package manager pnpm for example.

To solve this problem, we install estraverse in the dependencies and modify "patch-eslint-scope.js" to use it.

Current issue opened : Incorrect estraverse require #680

@arcanis
Copy link

arcanis commented Sep 17, 2018

👍 This would also help with Plug'n'Play! 🙂

@hzoo
Copy link
Member

hzoo commented Sep 24, 2018

Ok looks like it was removed in eslint/eslint#8755 so they don't actually use the module at all now.

Was a while ago, are we able to just use the ESlint traverser then @mysticatea?

@existentialism
Copy link
Member

existentialism commented Sep 25, 2018

How about releasing a major version that drops support for patching scope?

@hzoo
Copy link
Member

hzoo commented Sep 25, 2018

Yeah let's just do that instead

@hzoo
Copy link
Member

hzoo commented Sep 25, 2018

Sounds like we should do something like #689 + peerDep eslint 5 + major version?

@hzoo hzoo closed this in c333bd6 Sep 25, 2018
kaicataldo pushed a commit to babel/babel that referenced this pull request Nov 14, 2019
An alternative to adding a direct dep on estraverse (babel/babel-eslint#685), let's just drop the old monkeypatching behavior.

Closes #685, Closes #680
nicolo-ribaudo pushed a commit to babel/babel that referenced this pull request Nov 14, 2019
An alternative to adding a direct dep on estraverse (babel/babel-eslint#685), let's just drop the old monkeypatching behavior.

Closes babel/babel-eslint#685, Closes babel/babel-eslint#680
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants