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
Bug in template-curly-spacing rule #13248
Comments
I didnt notice interpolation in the code given (let me know if I missed) also, if you meant empty interpolation const a = ` ${} ` it is an invalid code. it cant be empty.
i think it cant be undefined if there is a valid template literal. also, adding this check can be fine too but the thing is it cant be undefined if there is a let me know if I missed something 👍 |
This is exactly my point - that there is NO interpolation in the given code.
with the following simple project |
can you try this ? |
I tried both v7.0.0 and v6.0.5 of Vue-ESLint-parser - no difference, the error is still there. I will post the issue on their tracker, too. |
Hi @tmcdos 😀 |
sorry for pointing to wrong repo . |
@yeonjuan Are you certain that Bable is the cause of the issue ? I have suspicion that |
Hi 😁 @tmcdos
Well .. I do not well know about the
Even if an error occurs in |
Unfortunately, it looks like there wasn't enough interest from the team Thanks for contributing to ESLint and we appreciate your understanding. |
Tell us about your environment
This is a standard Vue project created by Vue-CLI v4.2.0
What parser (default, Babel-ESLint, etc.) are you using?
Babel-ESLint
Please show your full configuration:
Configuration
What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.
What did you expect to happen?
There should be no linting errors.
What actually happened? Please include the actual, raw output from ESLint.
Are you willing to submit a pull request to fix this bug?
This issue seems to occur when JavaScript template strings (those enclosed in backticks) do not contain any interpolations.
The fix is to add
if(!token) return;
on line 118 ineslint/lib/rules/template-curly-spacing.js
The text was updated successfully, but these errors were encountered: