Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
tslint-rule-documentation
Advanced tools
Readme
Find the url for the documentation of a TSLint rule
npm install --save tslint-rule-documentation
const getRuleUri = require("tslint-rule-documentation").getRuleUri;
// find uri for core rules
getRuleUri("no-var-keyword");
// => { found: true, uri: "https://palantir.github.io/tslint/rules/no-var-keyword"}
// find uri for known plugins
getRuleUri("__example/foo");
// => { found: true, uri: "https://github.com/<user>/<repo>/blob/master/docs/foo.md"}
// If the plugin is not known, get a link to help improve this
getRuleUri("unknown-plugin/foo");
// => { found: false, uri: "https://github.com/Xapphire13/tslint-rule-documentation/blob/master/CONTRIBUTING.md"}
If a plugin you use is not in the list of supported plugins, please consider adding it to the project by following the instructions here.
Type: string
The ID of a TSLint rule
Examples:
no-var-keyword
__example/foo
Type: IRuleResult
interface IRuleResult {
found: boolean; // true if the rule is a TSLint core rule, or a known plugin rule, false otherwise
uri: string; // If found is true, uri of the documentation of the rule. If found is false, uri of the contribution guidelines
}
This is based on eslint-rules-documentation, so I would like to thank the authors of that for the inspiration and code to base this on.
MIT
FAQs
Find the url for the documentation of a TSLint rule
The npm package tslint-rule-documentation receives a total of 0 weekly downloads. As such, tslint-rule-documentation popularity was classified as not popular.
We found that tslint-rule-documentation demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.