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.

Bug with automatic formatting for "function-paren-newline" rule

See original GitHub issue

Tell us about your environment

  • ESLint Version: 7.12.1
  • Node Version: 14 LTS
  • npm Version: 6

What parser (default, @babel/eslint-parser, @typescript-eslint/parser, etc.) are you using? default

Please show your full configuration:

Configuration
    "function-paren-newline": ["error", "multiline-arguments"],

What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.

self._debug(
  'error getting piece %s (offset: %s length: %s) from %s: %s',
  index, chunkOffset, chunkLength, `${wire.remoteAddress}:${wire.remotePort}`,
  err.message
)

What did you expect to happen?

I expected it to be formatted like this:

self._debug(
  'error getting piece %s (offset: %s length: %s) from %s: %s',
  index,
  chunkOffset,
  chunkLength,
  `${wire.remoteAddress}:${wire.remotePort}`,
  err.message
)

What actually happened? Please include the actual, raw output from ESLint.

self._debug(
  'error getting piece %s (offset: %s length: %s) from %s: %s',
  index,
  chunkOffset,
  chunkLength,
`${wire.remoteAddress}:${wire.remotePort}`,
err.message
)

Are you willing to submit a pull request to fix this bug?

Sorry, I don’t have time at the moment.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
ljharbcommented, Oct 29, 2020

With the indent rule enabled, wouldn’t that correct the latter example to your expected output?

0reactions
ferosscommented, Oct 30, 2020

Great, then this is not an ESLint bug. Closing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bug in Conditional Formatting - Microsoft Community
I have a document with Conditional formatting in most sheets and when I went into Conditional Formatting Rules Management.
Read more >
Fix Excel Conditional Formatting Problem Extra Rules
Fix Excel conditional formatting problems when extra rules are automatically created. How to remove duplicate rules and prevent them from ...
Read more >
How to avoid a conditional formatting rule in Excel that doesn't ...
Formulaic conditional formatting rules in Microsoft Excel can be tricky, so learn how to avoid a common mistake.
Read more >
Removed Conditional Formatting comes back.
As a bug report this got "NOTABUG", so this is a feature request. ***** If one Conditional Formatting rule is removed, and then...
Read more >
Excel conditional formatting for blank cells - Ablebits
There is the first-in priority rule that stops conditional formatting for empty cells. Your formula is not correct. Your cells are not ...
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