-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.4.0 breaks babel-eslint #99
Comments
If you'd like me to make a reduced test case, I can do so. Let me know if you'd like anything else from me too. |
@michaelficarra |
Just saw this now. It's the babel 6 update - Just need to update the require statements (babel/babel-eslint#244) everyone can follow babel/babel-eslint#243 so not a escope issue. |
The transpiled file visitClass: {
value: function visitClass(node) {
if (node.type === Syntax.ClassDeclaration) {
this.currentScope().__define(node.id, new Definition(Variable.ClassName, node.id, node, null, null, null));
}
// FIXME: Maybe consider TDZ.
this.visit(node.superClass);
this.scopeManager.__nestClassScope(node);
if (node.id) {
this.currentScope().__define(node.id, new Definition(Variable.ClassName, node.id, node));
}
this.visit(node.body);
this.close(node);
}
}, And this is why it can't be found in v3.4: }, {
key: 'visitClass',
value: function visitClass(node) {
if (node.type === _estraverse.Syntax.ClassDeclaration) {
this.currentScope().__define(node.id, new _definition.Definition(_variable2.default.ClassName, node.id, node, null, null, null));
}
// FIXME: Maybe consider TDZ.
this.visit(node.superClass);
this.scopeManager.__nestClassScope(node);
if (node.id) {
this.currentScope().__define(node.id, new _definition.Definition(_variable2.default.ClassName, node.id, node));
}
this.visit(node.body);
this.close(node);
}
}, { |
@nre Don't bother. Closing, as this is certainly a problem with the hacky way babel-eslint is trying to monkeypatch escope. If they're doing that, they should be responsible and lock the version down. edit: Crossed streams with the above two comments. |
@michaelficarra yeah it's definitely something that needs to be updated in babel-eslint. Also we |
@michaelficarra The monkeypatching is only necessary because ESLint and Escope lack any extension APIs. |
Let's be clear for anyone else that might come across this issue: the @kittens I previously asked you for feedback on how to make ESLint more pluggable so we could avoid such hacks and didn't hear anything back. In the meantime, @hzoo and I have been discussing some options here: eslint/eslint#4640. |
@nzakas Yeah I know, I really appreciate your cooperation. I was just giving some historical context. I don't work on |
Hey, thanks for making a great project!
Sadly, it looks like
3.4.0
broke eslint with babel-eslint:The text was updated successfully, but these errors were encountered: