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

no-unexpected-multiline should warn for tagged template strings [$15] #4210

Closed
feross opened this Issue Oct 20, 2015 · 1 comment

Comments

Projects
None yet
3 participants
@feross
Copy link
Contributor

feross commented Oct 20, 2015

no-unexpected-multiline should warn for this case:

let x = function() {}
`hello`

To prevent it from being parsed like this:

let x = function() {}`hello`

For the full previous discussion about this topic, see: #4169 (comment)

Did you help close this issue? Go claim the $15 bounty on Bountysource.

@eslintbot

This comment has been minimized.

Copy link

eslintbot commented Oct 20, 2015

Thanks for the issue! If you're reporting a bug, please be sure to include:

  1. The version of ESLint you are using (run eslint -v)
  2. What you did (the source code and ESLint configuration)
  3. The actual ESLint output complete with numbers
  4. What you expected to happen instead

Requesting a new rule? Please see Proposing a New Rule for instructions.

@eslintbot eslintbot added the triage label Oct 20, 2015

@nzakas nzakas added enhancement rule accepted and removed triage labels Oct 20, 2015

@nzakas nzakas changed the title no-unexpected-multiline should warn for tagged template strings no-unexpected-multiline should warn for tagged template strings [$15] Dec 27, 2015

@nzakas nzakas added the bounty label Dec 27, 2015

rpatil26 added a commit to rpatil26/eslint that referenced this issue Jan 15, 2016

Update: Report unexpected tagged template (fixes eslint#4210)
Checks and reports function expression being treated as tagged template accidently.

rpatil26 added a commit to rpatil26/eslint that referenced this issue Jan 15, 2016

Update: Report unexpected tagged template (fixes eslint#4210)
Checks and reports function expression being treated as tagged template accidently.

rpatil26 added a commit to rpatil26/eslint that referenced this issue Jan 15, 2016

Update: Report unexpected tagged template (fixes eslint#4210)
Checks and reports function expression being treated as tagged template accidently.

rpatil26 added a commit to rpatil26/eslint that referenced this issue Jan 15, 2016

Update: Report unexpected tagged template (fixes eslint#4210)
Checks and reports function expression being treated as tagged template accidently.

ilyavolodin added a commit that referenced this issue Jan 15, 2016

Merge pull request #4963 from rpatil26/issue4210
Update: Report unexpected tagged template (fixes #4210)

@eslint eslint bot locked and limited conversation to collaborators Feb 7, 2018

@eslint eslint bot added the archived due to age label Feb 7, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.