Is shared.js meant to be used externally? [Allow helper methods to be used by external rules]
See original GitHub issueI’m writing a custom rule, and it would be very useful to use methods such as forEachLine
in it. Is this file part of the public API?
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Sharing JavaScript Code in a Component Bundle
A helper function can pass in any arguments required by the function, such as the component it belongs to, a callback, or any...
Read more >Should private helper methods be static if they can be static
I prefer such helper methods to be private static ; which will make it clear to the reader that they will not modify...
Read more >JavaScript best practices - W3C Wiki
Global variables and function names are an incredibly bad idea. The reason is that every JavaScript file included in the page runs in...
Read more >Variable scope, closure - The Modern JavaScript Tutorial
A closure is a function that remembers its outer variables and can access them. In some languages, that's not possible, or a function...
Read more >Functions — reusable blocks of code - Learn web development
In this article we'll explore fundamental concepts behind functions such as basic syntax, how to invoke and define them, scope, and parameters.
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 FreeTop 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
Top GitHub Comments
shared.js is now available as
markdownlint-rule-helpers
: https://www.npmjs.com/package/markdownlint-rule-helpers+1
While working on the custom rule I’ve found some of the shared helpers’ methods quite handy. I had to copy/paste them but I think they should be accessible for everyone