daisy-chain indentation leads to over-indentation
See original GitHub issueUsing this via https://github.com/enginespot/js-beautify-sublime
Expected:
object
.foo()
.bar();
Actual:
object
.foo()
.bar();
To illustrate the problem: the current indenting can lead to EOFs like this:
});
});
})();
That looks like an error to me, and will prompt me to look for the cause – or worse, make me blind to the real ones =(
Issue Analytics
- State:
- Created 9 years ago
- Reactions:10
- Comments:18 (6 by maintainers)
Top Results From Across the Web
js-beautify | Yarn - Package Manager
... Webpack (#1149); daisy-chain indentation leads to over-indentation (#482) ... [bug] Incorrect indentation due to commented line(s) following a function ...
Read more >mjmlTest/node_modules/js-beautify/CHANGELOG.md - GitLab
... daisy-chain indentation leads to over-indentation (#482) ... HTML pre code indentation (#928); Beautify script/style tags but ignore ...
Read more >How to Daisy Chain Multiple Monitors Using DisplayPort Multi ...
Daisy chaining describes the ability to connect a series of monitors to a single video output port on your computer or docking station....
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
I have to +1 this request, this is especially handy when working with Promises.
This chaining can continue for a while, especially when writing a more involved api end point, and by the time you’re looking at the bottom you’re constantly thrown off guard with how the indentation finishes relative to something close by.
I believe it’s important that all closing indentation be one level of depth difference from the next nearest.
+1 This is leading to
Expected exactly one space between '{a}' and '{b}'
errors in jslint.Example:
Errors:
Correct way (for jslint):