Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
tslint-rule-documentation
Advanced tools
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
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.