Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
eslint-rule-documentation
Advanced tools
Find the url for the documentation of an ESLint rule
$ npm install --save eslint-rule-documentation
const getRuleURI = require('eslint-rule-documentation');
// find url for core rules
getRuleURI('no-var');
// => { found: true, url: 'https://eslint.org/docs/rules/no-var' }
// find url for known plugins
getRuleURI('import/no-unresolved');
// => { found: true, url: 'https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-unresolved.md' }
// If the plugin is not known, get a link to help improve this
getRuleURI('unknown-foo/bar');
// => { found: false, url: 'https://github.com/jfmengels/eslint-rule-documentation/blob/master/contributing.md' }
If you find a plugin that you use is not in the list of supported plugins, please consider adding it to the project by following the instructions here.
Type: string
Id of an ESLint rule.
Examples:
no-var
import/no-unresolved
(from the eslint-plugin-import plugin).Type: object
{
found: <boolean>,
url: <string>
}
found
: true
if the rule is an ESLint core rule, or a rule of a known plugin, false
otherwise.url
: if found
is true
, url of the documentation of a rule. If found
is false
, url of the contribution guidelines.Special thanks to the team behind linter-eslint for the original work, and the people who contributed there.
MIT © Jeroen Engels
FAQs
Find the url for the documentation of an ESLint rule
The npm package eslint-rule-documentation receives a total of 87,606 weekly downloads. As such, eslint-rule-documentation popularity was classified as popular.
We found that eslint-rule-documentation demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.