'brace-style' couldn't handle `a.${b.prop}.${c.prop}`; syntax
See original GitHub issueRule ‘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:
- Created 7 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
sorry, I cannot share the file, but I’ll create another with the same corner case
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.