Force objects/arrays/ArgumentLists/FormalParameters that can fit on one line, onto one line
See original GitHub issue//good
// eslint max-len=16
function foo(
ham,
spam,
eggs,
) { ... }
// bad
function foo(ham, spam, eggs) { ... }
// eslint max-len=100
//bad
function foo(
ham,
spam,
eggs,
) { ... }
// good
function foo(ham, spam, eggs) { ... }
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (10 by maintainers)
Top Results From Across the Web
How can I force div contents to stay in one line with HTML and ...
Try this: div { border: 1px solid black; width: 70px; overflow: hidden; white-space: nowrap; }.
Read more >How to Quickly Merge Multiple Lines into One in Your Word ...
In this article, we'll mainly describe on how to merge your multiple lines into a single line in a convenient way.
Read more >Change the line spacing in Word - Microsoft Support
Change the line spacing in a portion of the document. Select one or more paragraphs to update. Press Ctrl + A to select...
Read more >Microsoft Word Tricks: 3 Simple Ways to Keep Text Together
As the name implies, non-breaking characters connects or “glues” the text together and it will all automatically move to the next line together ......
Read more >How do I combine all lines in a text file into a single line?
tr as you used it should work and is the simplest -- you just need to output to another file. If you use...
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 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
What about other things, such as comma and brace style? For example, the length of a line will be different depending on whether it’s formatted like this:
or like this:
I’m worried that having the rule depend on the length of a line has too many potential factors that would depend on other rules.
Unfortunately, it looks like consensus couldn’t be reached on this issue and so I’m closing it. While we wish we’d be able to accommodate everyone’s requests, we do need to prioritize. We’ve found that issues failing to reach consensus after 21 days tend never to reach consensus, and as such, we close those issues. This doesn’t mean the idea isn’t interesting, just that it’s not something the team can commit to.
Remember, you can still create this rule for yourself and distribute it as a plugin.