Default behavior for `remark-lint-linebreak-style`
See original GitHub issueremark-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:
- Created 5 years ago
- Comments:5 (4 by maintainers)
Top 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 >
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
@kgryte @Planeshifter Sorry it took so long! 😬 Finally released!
Sweet, thanks Philipp!