question-mark
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.

Space between arrays on single line

See original GitHub issue

How to add spaces inside brackets of arrays on single line?

{
  "items": [ "item1", "item2" ]
}

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
CiGitcommented, Nov 9, 2017

This is a prettier feature, It was decided to remove spacing in brackets / parens. Duplicate of #35 You can read more about it in prettier/prettier#296

1reaction
CiGitcommented, Nov 9, 2017

Forgot to mention, if you really want it, you can use ‘eslintIntegration’ with https://eslint.org/docs/rules/space-in-brackets

Read more comments on GitHub >

github_iconTop Results From Across the Web

Adjusting space between array rows and columns - TeX
This is especially useful to individually correct the spacing between lines, such as when the line heights differ from one line to another...
Read more >
javascript - How to print a space between each word in an array
Use Array.prototype.join() . You can specify a character to put between the values, in your case: array.join(' ');.
Read more >
Cell array with space between the ' and } - MATLAB Answers
I have been writing some code with reg expressions that reads from a text file. It has been working with most of the...
Read more >
How to take a single line input array? How do I take a ... - Quora
In python. Single line input array without space between them. N=[int(i) for i in input().split(“”)]. Single line input array with space between them....
Read more >
Chapter 7: Arrays - cs.utsa.edu
A second loop should print the values of the array with spaces between the values. ... on one line with commas between the...
Read more >

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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found