{"name":"eslint-rule-documentation","version":"1.0.23","description":"Find the url for the documentation of an ESLint rule","license":"MIT","repository":{"type":"git","url":"git+https://github.com/jfmengels/eslint-rule-documentation.git"},"author":{"name":"Jeroen Engels","email":"jfm.engels@gmail.com","url":"github.com/jfmengels"},"engines":{"node":">=4.0.0"},"scripts":{"test":"xo && ava"},"keywords":["eslint","eslintplugin","eslint-plugin","plugin","plugins","rule","rules","doc","documentation"],"devDependencies":{"ava":"^0.15.2","xo":"^0.16.0"},"xo":{"space":2},"gitHead":"58b76af656cb7c07066df6078f76311bda2eeeae","bugs":{"url":"https://github.com/jfmengels/eslint-rule-documentation/issues"},"homepage":"https://github.com/jfmengels/eslint-rule-documentation#readme","_id":"eslint-rule-documentation@1.0.23","_nodeVersion":"11.12.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-pWReu3fkohwyvztx/oQWWgld2iad25TfUdi6wvhhaDPIQjHU/pyvlKgXFw1kX31SQK2Nq9MH+vRDWB0ZLy8fYw==","shasum":"4e0886145597a78d24524ec7e0cf18c6fedc23a8","tarball":"http://registry-npm.ywwl.com/eslint-rule-documentation/download/eslint-rule-documentation-1.0.23.tgz","fileCount":5,"unpackedSize":6836,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcsLl6CRA9TVsSAnZWagAA898P/1X89UC+u1d3wsAd6p3p\ngVw+ALOhSDjyTArajUvFUKac3NdapdmyY4gcl1K/EkpnX7+Se9Jfft4OUXuy\nJKexRgXaC5SLhyrU9NgBNNkP8hlYQMC47poR4+ZSajawSnrHxvIha9H/S5en\n6RVHJTQyCnIkfYQCY+H/DZ1R5ejI8f0gBnEv7tpYqNNW3qePVrJaql3MNFdD\nkAUs/q8a5XfZWzsoTG+6lYVqWtbvu9RhTbqFp6RAKoXc6c1at0FBzdPcv5iI\nKn//DT7aAl4VrAAy7SVGUb8BbF3UFIBOfqdVdIMuvFwSlI3m3CgvOWW4Bp5i\nV6nSMMrr02Cg6hPSZRkoKW4KFj8D4txbhY4Z7nnN7aHC/auTLon/OHuQ/SKa\nAJAgUOg4/zzHjM3bzIk3PXMpNiV+lMhOk51G+tQc+Ln3/oZsTYS8sMxISxiU\njfxdyDFDzHcHMtOxFS/lJb/+8nntqAp4NDe2S9HHaPKAaqGFnj7hWubaanas\n68bPhZQQ6gb9NR390TbGn0adMZQUy9VDhZSZ7N9Vbs+OOgG7s6A/+yNQL5TW\ncRt8QQBMKuaAbtqqAZUdz3iFmLhoZ5FPt7P9L8Yvkxy1X+tApdQuwXU+Ys4F\nts5Z8ia4BK3ps0CVAmx1gb1Guk3jIOK9mk6AZ4CWcRbeq9kx01pf8JqiHdFc\ned8L\r\n=PKy3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCKqQQFcsvuebacQ2M+P0ihKZnyOlCIwDZIz2Udz88YtQIgfOCYAesa4mo/wUUE1Qkz/Oxer4kH9Tm6sDB6fK6ouhI="}],"size":2963,"noattachment":false,"key":"/eslint-rule-documentation/-/eslint-rule-documentation-1.0.23.tgz"},"maintainers":[{"name":"arcanemagus","email":"landonabney@gmail.com"},{"name":"jfmengels","email":"jfm.engels@gmail.com"}],"_npmUser":{"name":"arcanemagus","email":"landonabney@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-rule-documentation_1.0.23_1555085689433_0.030639250580762445"},"_hasShrinkwrap":false,"readme":"# eslint-rule-documentation [![Build Status](https://travis-ci.org/jfmengels/eslint-rule-documentation.svg?branch=master)](https://travis-ci.org/jfmengels/eslint-rule-documentation)\r\n\r\n> Find the url for the documentation of an [ESLint] rule\r\n\r\n\r\n## Install\r\n\r\n```\r\n$ npm install --save eslint-rule-documentation\r\n```\r\n\r\n\r\n## Usage\r\n\r\n```js\r\nconst getRuleURI = require('eslint-rule-documentation');\r\n\r\n// find url for core rules\r\ngetRuleURI('no-var');\r\n// => { found: true, url: 'https://eslint.org/docs/rules/no-var' }\r\n\r\n// find url for known plugins\r\ngetRuleURI('import/no-unresolved');\r\n// => { found: true, url: 'https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-unresolved.md' }\r\n\r\n// If the plugin is not known, get a link to help improve this\r\ngetRuleURI('unknown-foo/bar');\r\n// => { found: false, url: 'https://github.com/jfmengels/eslint-rule-documentation/blob/master/contributing.md' }\r\n```\r\n\r\n## Contributing\r\n\r\nIf you find a plugin that you use is not in the [list of supported plugins](./plugins.json), please consider adding it to the project by following the instructions [here](./contributing.md).\r\n\r\n\r\n## API\r\n\r\n### getRuleURI(ruleId)\r\n\r\n\r\n\r\n#### ruleId\r\n\r\nType: `string`\r\n\r\nId of an [ESLint] rule.\r\n\r\nExamples:\r\n- core rule: `no-var`\r\n- plugin rule: `import/no-unresolved` (from the [eslint-plugin-import] plugin).\r\n\r\n#### returns\r\n\r\nType: `object`\r\n\r\n```js\r\n{\r\n  found: <boolean>,\r\n  url: <string>\r\n}\r\n```\r\n\r\n- `found`: `true` if the rule is an ESLint core rule, or a rule of a known plugin, `false` otherwise.\r\n- `url`: if `found` is `true`, url of the documentation of a rule. If `found` is `false`, url of the [contribution guidelines](./contributing.md).\r\n\r\n## Thanks\r\n\r\nSpecial thanks to the team behind [linter-eslint] for the original work, and the people who contributed there.\r\n\r\n\r\n## License\r\n\r\nMIT © [Jeroen Engels](https://github.com/jfmengels)\r\n\r\n[eslint-plugin-import]: https://github.com/benmosher/eslint-plugin-import\r\n[ESLint]: https://eslint.org/\r\n[linter-eslint]: https://github.com/AtomLinter/linter-eslint\r\n","publish_time":1555085689561,"_cnpm_publish_time":1555085689561,"dist-tags":{"latest":"1.0.23"}}