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.

Rule proposal: `empty-brace-space`

See original GitHub issue

This rule would enforce spaces between braces in empty anonymous functions and try/catch braces. It is important because it is a syntax style I need to follow but isn’t automatically caught by xo already.

Fail

try { } catch { }

() => { }

Pass

try {} catch {}

() => {}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
sindresorhuscommented, Nov 24, 2020

To for (;;) {}. This rule should only be about “brace space”. Nothing else.

0reactions
yankeeinlondoncommented, Jun 14, 2021

i get this error but when I correct it, vs-code automatically injects a space back in when I save. Anyone know what rule is doing this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

SEC Proposes Amendments to Modernize Shareholder ...
The Securities and Exchange Commission today proposed amendments to Exchange Act Rule 14a-8, the shareholder-proposal rule, which requires ...
Read more >
CFOs will be at the center of climate-risk disclosure reporting ...
Persefoni's Kristina Wyatt predicts the SEC's climate-disclosure rule will go into effect early next year.
Read more >
Full article: Race, Space, and the Regulation of Surplus Labor
This essay examines the joint racial and class domination exercised in Los Angeles's Skid Row. Known widely as the “homeless capital of the ......
Read more >
Volcker rule may disadvantage U.S. banks: OCC's Walsh
The Volcker rule's restrictions on proprietary trading and hedge fund ... to craft a clear proposal, as required by the 2010 Dodd-Frank law....
Read more >
Environmental, Social and Governance Report
At Rackspace Technology®, we're committed to helping companies around the ... governance topics, including compliance with laws, rules and regulations;.
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