Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'brace-style' couldn't handle `a.${b.prop}.${c.prop}`; syntax

See original GitHub issue

Rule ‘brace-style’ mark a.${b.prop}.${c.prop}; syntax as an error

Tell us about your environment

  • ESLint Version:3.6.1
  • Node Version:6.6.0
  • npm Version:3.10.3

What parser (default, Babel-ESLint, etc.) are you using? default

Please show your full configuration:

  "env": {
    "es6": true,
    "mocha": true,
    "node": true
  "extends": "eslint:recommended",
  "rules": {
    "eol-last": "error",
    "indent": [ "error", 2],
    "no-console": "off",
    "no-multi-spaces": "error",
    "no-trailing-spaces": "error",
    "no-var": "error",
    "prefer-const": "error",
    "quotes": ["error", "single", "avoid-escape"],
    "semi": ["error", "always"],
    "key-spacing": "error",
    "brace-style": "error"

What did you do? Please include the actual source code causing the issue.

      } else {
        text = `${tagName}.${attribs.class}`;

What did you expect to happen? pass lint rule

What actually happened? Please include the actual, raw output from ESLint. error Closing curly brace does not appear on the same line as the subsequent block

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

omarcinpcommented, Oct 18, 2016

sorry, I cannot share the file, but I’ll create another with the same corner case

vitorbalcommented, Nov 10, 2016

I’m gonna go ahead and close this since there’s not much we can do without more feedback from the OP. We can re-open it if we get more feedback later.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found