{"name":"eslint-rule-documentation","version":"1.0.22","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":"db8d27ae903226d654ffe830379eaf15714a9c28","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.22","_npmVersion":"6.5.0","_nodeVersion":"11.7.0","_npmUser":{"name":"arcanemagus","email":"landonabney@gmail.com"},"dist":{"integrity":"sha512-HVc7wTszrCcZli7BCnOnRH7vS8x9bBcenu74JTYVLjsMABvx65A/+wraWa4budF94j08/G6a9c/tbhgPyi3EYQ==","shasum":"2d306a1e5d18a5ab422e8d68f889f9ef4b533eb2","tarball":"http://registry-npm.ywwl.com/eslint-rule-documentation/download/eslint-rule-documentation-1.0.22.tgz","fileCount":5,"unpackedSize":6757,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcS1lSCRA9TVsSAnZWagAAT9kP/0uhq/Q1W1qewP4PV5vj\nomBAGncjZ9u23ifNPL3pJYfuKKuMi9FWSVc5+ZSVSTwOQKAShbWY03meGTZn\n+yz2oohdrhi0pkVucbRm458+TQ2ZkZ3WuC9xiYFhwRju/+SbTpTMaeinLLPt\nwnL/mrX+y9g8VmG+zWqeIClR70n2U0Ya/gB6vlbom4niRB0fqh4Z7D2BfZx4\nsBDnWWEUwujyA45scBAlCQ0To2lGGf8ue8/OghiV2f3kUzokLmgN3JVPkKtm\nZlwnX1NDBDBMWgN9BhhvCPfbzCA5mct8QJHmmIRuebdLSNzjfO6RwkM6ZHNe\nuiMEvgSBCgsdBzYYoyaF0r+RWL3JlCC4Ua0fG8Z8pPJe4WWAFSeixzf2ZbR5\nmNWnilQMRI05oXIKjxcrLp31cFL43Xr7OxLftbQgv4FPgTkQCMTS9Kqyu7FA\nzWH9NLxdDaSKdm9aBur1TNgEmb6GnMbqJkqsmmaEbNfEDOhHbxaW5CX0pTx7\nwG0V3ubrBNkTQBlKDCpQOSbl27SOutAjCjtotzoRL5XyeuMgZrtt7E4gYkl+\n4nEV2pCHKxE1VL0YNBJvhxnlxaWSfvPf7pIHEeoWKX0T2Xrv+S9cd3Q6KmVv\nEusC0GtfE/ooGbNVaAr/4VPyLofsXM7UVktagTdIb8dzwk1AxU/zO6/rRToE\n9ta3\r\n=q34W\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBakusMmG91CNB3C7h/AqipEBL0rFJqh4zlVsTfDwTsGAiEAxTm/pi7YN3XTEWuNVWcK4RgLxw5qv0bu16xnftm/4zU="}],"size":2948,"noattachment":false,"key":"/eslint-rule-documentation/-/eslint-rule-documentation-1.0.22.tgz"},"maintainers":[{"name":"arcanemagus","email":"landonabney@gmail.com"},{"name":"jfmengels","email":"jfm.engels@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-rule-documentation_1.0.22_1548441938164_0.3163325366894034"},"_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":1548441938306,"_cnpm_publish_time":1548441938306,"dist-tags":{"latest":"1.0.23"}}