Skip to content

Use Coffeescript-compatible template expression wrapper #61

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

Closed
wants to merge 3 commits into from

Conversation

helixbass
Copy link

Hi,

We have just released Coffeescript v2.5.0 with AST support + eslint-plugin-coffee ESLint custom parser + plugin

I got a bug report from someone trying to set up ESLint in a Vue + Coffeescript project

When I looked, the problem is that in parseExpressionBody() you are wrapping template expressions in 0(...), which doesn't parse in Coffeescript

So this PR updates to use [...] wrapper instead of 0(...)

@@ -1345,9 +1345,9 @@
},
{
"message": "Unexpected end of expression.",
"index": 76,
"index": 75,
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This appears to be the accurate location data for the trailing 1 in the expression abc + (1 in test/fixtures/ast/error-message-outside/source.vue

@helixbass
Copy link
Author

Closing in favor of #62

@helixbass helixbass closed this Jan 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant