Skip to content
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

Eslint fails when using string interpolations in an object declaration #114

Open
mickmister opened this issue Aug 17, 2020 · 0 comments
Open
Labels
Hacktoberfest Help Wanted Community help wanted Tech/ReactJS Tech/TypeScript Type/Task A general task Up For Grabs Ready for help from the community. Removed when someone volunteers

Comments

@mickmister
Copy link
Contributor

Eslint itself has an error when certain syntaxes are used. We believe it is due to babel not being able to properly parse the code given some combination of dependency versions we are using.

Minimal example:

const s = 'some string';
const obj = {
	some_key: `Here: ${s}`,
};
console.log(obj); // to avoid var not used warning

It will result in an error similar to this issue: eslint/eslint#13248

@mickmister mickmister added Help Wanted Community help wanted Up For Grabs Ready for help from the community. Removed when someone volunteers Type/Task A general task Tech/ReactJS Tech/TypeScript labels Aug 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Hacktoberfest Help Wanted Community help wanted Tech/ReactJS Tech/TypeScript Type/Task A general task Up For Grabs Ready for help from the community. Removed when someone volunteers
Projects
None yet
Development

No branches or pull requests

3 participants