eslint-rule-docs
Find documentation url for a given ESLint rule
Last updated 4 years ago by stefanbuck .
MIT · Repository · Bugs · Original npm
$ cnpm install eslint-rule-docs 
SYNC missed versions from official npm registry.

eslint-rule-docs

Actions Status NPM

Find documentation url for a given ESLint rule. Updated daily!

Install

$ npm install eslint-rule-docs

Usage

const getRuleUrl = require('eslint-rule-docs');

// Find url for core rules
getRuleUrl('no-undef');
// => { exactMatch: true, url: 'https://eslint.org/docs/rules/no-undef' }

// Find url for known plugins
getRuleUrl('react/sort-prop-types');
// => { exactMatch: true, url: 'https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/sort-prop-types.md' }

// If the plugin has no documentation, return repository url 
getRuleUrl('flowtype/semi');
// => { exactMatch: false, url: 'https://github.com/gajus/eslint-plugin-flowtype' }

// If the plugin is unknown, returns an empty object
getRuleUrl('unknown-foo/bar');
// => {}

License

Copyright (c) 2018–present Stefan Buck. Licensed under the MIT license.

Current Tags

  • 1.1.231                                ...           latest (4 years ago)

3 Versions

  • 1.1.231                                ...           4 years ago
  • 1.1.203                                ...           5 years ago
  • 1.1.189                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (5)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org