`indent` rule's unexpected warnings around method chaining.
See original GitHub issueI got unexpected warnings of indentations around method chaining. ESLint v1.6.0 This might be duplicate of #4076.
/* eslint-env es6 */
/* eslint indent:[2,4] */
http.get(`http://localhost:${port}/`, () => {
reject(new Error("Already started."));
})
.on("error", () => {
resolve();
});
I expected no errors.
I can resolve this with below:
/* eslint-env es6 */
/* eslint indent:[2,4] */
http
.get(`http://localhost:${port}/`, () => {
reject(new Error("Already started."));
})
.on("error", () => {
resolve();
});
If http
was longer, I would do so, but…
<bountysource-plugin>
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource. </bountysource-plugin>
Issue Analytics
- State:
- Created 8 years ago
- Comments:10 (9 by maintainers)
Top Results From Across the Web
Auto-indent lines feature wrongly indents multiline chained ...
Auto-indent lines feature wrongly indents multiline chained method calls ; Relates to 1 issue (1 unresolved) · PY-33832 ; Is duplicated by 6...
Read more >indentation for method chaining [closed] - c++ - Stack Overflow
Method chaining is a way to cram more onto a line, so if we're then going to split the lines back out again,...
Read more >Style Rule Set | Detekt
Style Rule Set. The Style ruleset provides rules that assert the style of the code. This will help keep code in line with...
Read more >Rules - JavaScript Standard Style
This is a summary of the standard JavaScript rules. The best way to learn about standard is to just install it and give...
Read more >Rules - ESLint - Pluggable JavaScript Linter
Rules in ESLint are grouped by type to help you understand their purpose. ... no-unexpected-multiline ... Require braces around arrow function bodies.
Read more >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 FreeTop 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
Top GitHub Comments
@eslint/eslint-team I think we can close this ? No movement for so long and we haven’t seen any big traction for this style.
@kaicataldo That was my task (grouping all indent rules and triaging all of them). Unfortunately I have been unable to complete it yet.