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.

Default behavior for `remark-lint-linebreak-style`

See original GitHub issue

remark-lint-linebreak-style breaks down when one explicitly sets the option to consistent, as L74 in https://github.com/remarkjs/remark-lint/blob/master/packages/remark-lint-linebreak-style/index.js only checks whether preferred is truthy. In other rules, you have used the following pattern at the beginning of the function body:

preferred = typeof preferred !== 'string' || preferred === 'consistent' ? null : preferred;

Alternatively, one could explicitly check for whether preferred is equal to unix or windows in L74.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
wooormcommented, Jun 4, 2018

@kgryte @Planeshifter Sorry it took so long! 😬 Finally released!

1reaction
wooormcommented, Apr 5, 2018

Sweet, thanks Philipp!

Read more comments on GitHub >

github_iconTop Results From Across the Web

To change your life, start by resetting your default behaviors
Default behavior #2: Immediately responding to chat messages and texts. Compared to your inbox, chat apps and texts are even harder to control....
Read more >
How to Manage Browser Defaults with event.preventDefault ...
Browsers have default interactions and behaviors for different events. For example, when a user clicks a "submit" button on a form, the form ......
Read more >
Writing callbacks that prevent default behavior | Micah Godbolt
Provide a default behavior escape hatch​​ We've been using preventDefault to stop default behavior of buttons and other elements for a long time, ......
Read more >
How Does CSS Work?. Understanding the Default Behavior of…
When you start creating a new website, even before writing a single style, the browser applies styles to it — its default styles....
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