{"versions":{"0.1.0":{"name":"eslint-plugin-rulesdir","version":"0.1.0","description":"Allows a local ESLint rules directory to be used without a command-line flag","license":"MIT","keywords":["eslint","eslintplugin","eslint-plugin"],"author":{"name":"Teddy Katz"},"scripts":{"test":"npm run lint","lint":"eslint .eslintrc.js *.js **/*.js"},"devDependencies":{"eslint":">=3","eslint-config-airbnb-base":"^11.2.0","eslint-plugin-import":"^2.6.1"},"engines":{"node":">=4.0.0"},"gitHead":"3ecad094ddd1043d863b65e144c6cf69e58db480","_id":"eslint-plugin-rulesdir@0.1.0","_shasum":"ad144d7e98464fda82963eff3fab331aecb2bf08","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.0","_npmUser":{"name":"anonymous","email":"teddy.katz@gmail.com"},"dist":{"shasum":"ad144d7e98464fda82963eff3fab331aecb2bf08","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/eslint-plugin-rulesdir/-/eslint-plugin-rulesdir-0.1.0.tgz","integrity":"sha512-HdZ8XhTY8QkOxXX4X++lyWJdOeJ9ATkWQ6Rp+PVq9jk8Km2LTTOgbFXqIIqACl3TPVXBhxP5hU51ddT93wKvdA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8NE94PnBKusvI5Qn+oTArwPzShGHJTQSQMcTBzoA/1gIhAI9b+UB3I6zYqD/Yk4BXRmptiNr2B5qwIGiLgr4VFkBd"}]},"maintainers":[{"name":"anonymous","email":"teddy.katz@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-rulesdir-0.1.0.tgz_1498806365231_0.7655305273365229"},"directories":{},"contributors":[]},"0.2.0":{"name":"eslint-plugin-rulesdir","version":"0.2.0","description":"Allows a local ESLint rules directory to be used without a command-line flag","license":"MIT","keywords":["eslint","eslintplugin","eslint-plugin"],"author":{"name":"Teddy Katz"},"scripts":{"test":"npm run lint-single-rulesdir && npm run lint-multiple-rulesdir","lint-single-rulesdir":"eslint --config .eslintrc-single-rulesdir.js *.js **/*.js","lint-multiple-rulesdir":"eslint --config .eslintrc-multiple-rulesdir.js *.js **/*.js"},"devDependencies":{"eslint":">=3","eslint-config-airbnb-base":"^11.2.0","eslint-plugin-import":"^2.6.1"},"engines":{"node":">=4.0.0"},"gitHead":"0678a8bc7358856e3c9ecdbb3ba31db587094121","_id":"eslint-plugin-rulesdir@0.2.0","_nodeVersion":"15.11.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-PPQPCsPkzF3upl1862swPA1bmDAAHKHmJJ4JTHJ11JCVCU4sycB0K5LLA/Rwr6r4VbnpScvUvHV4hqfdjvFmhQ==","shasum":"0d729e3f11bcb1a18d9b724a29a6d1a082ac2d62","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/eslint-plugin-rulesdir/-/eslint-plugin-rulesdir-0.2.0.tgz","fileCount":9,"unpackedSize":7649,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgRBl/CRA9TVsSAnZWagAAtesP/jARUDsI3D5MGJBnKptG\nmqzy9YmCIC6scQD+s9/MwQdpdtqdpb1ZnwbGoIkH86QJniH7ZmUIh5GQWsAj\nEkIX5/+ZExwy2kDmUy32CcG1SjncSuVRShS1qG5bMAgZ8YbckrjG9pgmErBB\nqxk5P8r3kpo5K0oUQ3AR6VLWo7f+8KAPn6oQAPkdjrmsc4IyQILoHlBDNl+2\nWkejAKJnasL2SnyIYzI4rP2Sdksj9jiTFUIyNSD/S4AzMyijJmvBcXbnqht+\naqH7uk0UO1oZ7ZxhwqZNxBZKDqNBAXtXcoQ15cSLx4DVrqve1FaFXtA9+2Ld\nhoYASnxzyyoX8xFhrDXtPY8BvAVGh5wjMXSSy9cAnxV/sZ1SMaBTNmzhVPAm\n4F5paByVjcO0KQD++jmh4th7b9+PkSOAwZcYbYCP4BNJGs3B+11WMuZqY8QS\nCGCPdl7fIy1ToQVesdjZbnqV4cx3UTJ+1cvkhixhOzb9ZLAcw5i9jLFhw86s\n8NXfiRN5rt6U4qhH0ap7z7CmBfsL2BSZLqD3JG1TPZKh2x0uOkLm0ZmdfyQi\nMVNZBUTckCkzFagYzXNvetMGlAx3ZAEBVVBeLEvSXzKpfukvi33MdlpIKH5K\nSSamQcKabTXBajlh8WnS8z61TQ4mEmdW1pKegbs+WsCHLxugkVEH16VTb7Nh\nFHBf\r\n=NwrY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCgyUM8h2/RzXi0QDb8uiBChuISjKtQbx2WsziZ7b7z2AIgbDX9/MDNWZi2Qg0CO0NMQrFpjRwaSyV4DEs/9JOF+cM="}]},"_npmUser":{"name":"anonymous","email":"teddy.katz@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"teddy.katz@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-rulesdir_0.2.0_1615075710445_0.1941275047100408"},"_hasShrinkwrap":false,"contributors":[]},"0.2.1":{"name":"eslint-plugin-rulesdir","version":"0.2.1","description":"Allows a local ESLint rules directory to be used without a command-line flag","license":"MIT","keywords":["eslint","eslintplugin","eslint-plugin"],"author":{"name":"Teddy Katz"},"scripts":{"test":"npm run lint-single-rulesdir && npm run lint-multiple-rulesdir","lint-single-rulesdir":"eslint --config .eslintrc-single-rulesdir.js *.js **/*.js","lint-multiple-rulesdir":"eslint --config .eslintrc-multiple-rulesdir.js *.js **/*.js"},"repository":{"type":"git","url":"git+https://github.com/not-an-aardvark/eslint-plugin-rulesdir.git"},"devDependencies":{"eslint":">=3","eslint-config-airbnb-base":"^11.2.0","eslint-plugin-import":"^2.6.1"},"engines":{"node":">=4.0.0"},"gitHead":"8175162d950649822d85632905b64c4e1e4d6f4a","bugs":{"url":"https://github.com/not-an-aardvark/eslint-plugin-rulesdir/issues"},"homepage":"https://github.com/not-an-aardvark/eslint-plugin-rulesdir#readme","_id":"eslint-plugin-rulesdir@0.2.1","_nodeVersion":"16.2.0","_npmVersion":"8.1.3","dist":{"integrity":"sha512-t7rQvEyfE4JZJu6dPl4/uVr6Fr0fxopBhzVbtq3isfOHMKdlIe9xW/5CtIaWZI0E1U+wzAk0lEnZC8laCD5YLA==","shasum":"e246bb9657e68eb0a30680c60775f40aa829ec0b","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/eslint-plugin-rulesdir/-/eslint-plugin-rulesdir-0.2.1.tgz","fileCount":9,"unpackedSize":7845,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhlb/2CRA9TVsSAnZWagAAsUYP/RW+F1o65cqD1dW1mkOJ\nP3ik6l8U+6RgxWsY97hOtVe673t6T1L+HtaXNZMYRtRGoNKrtRovOo482AqG\nLxCvDu6lvY+YqJH+WPwP+tmfsiQ3ks8DYvWicnbuJcibRe0HYrzzVAFaw/bC\nzrq8tSCxlistWfg5ukWr2H+WSLksR7kPw8zKAdgy6SB0av2Ynal377yfvIq+\nWRt1tHdeFFzSH29oA67eNpg0OsadqaVL/R55Pp6h9IlHrbXmmqI9mZNyiiLA\ntYdxe8EnkqmSe/KKJxWntR/X4wqw+QFaKfZnZmANP9KTWkHlArYDQtjHg2wk\nvDcg/XhGEt5bJXjvBQZu0f4BtBQP7H98FYA4ear79LeaAeHNwB6MRkRRr76i\ndtMMJivTz1e6DYx7Fhp1vUTS5lL5PLvIsb2CwfVlR7Xbw+d804hqhE/Gav1g\nwh+C/WuS5LfeHK6uwA9kRaCVXAAi1yuuZivA4bcifcemk7oQDrNhBe88q41w\nHbE2qAaMnrJ6JJOKF1f8CegXfmATRIW2sbstpgb1S81qf9CSdYmr+zrOKQGY\nDPePAc9cx9TQmde5+TaOnmbrvMzFqS4Y2FDTtFbnOSl+hdFFZxyaj0HQwOtH\nptLCIe0ZupZLMSkf4w35NOZpSWpg7rWPXZxtO4CPk/pn1DMy0fZxZGBik8V4\nE5xr\r\n=BHHE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFw7z6vUv6IAGnXvkiWieQuODeWmZvLUnRhVmMLN+qJNAiAl+uv3pYuKqSHye+A0onFXL5wVEp6rPfKHcth5gfo15Q=="}]},"_npmUser":{"name":"anonymous","email":"teddy.katz@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"teddy.katz@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-rulesdir_0.2.1_1637203958419_0.37978082750675823"},"_hasShrinkwrap":false,"contributors":[]},"0.2.2":{"name":"eslint-plugin-rulesdir","version":"0.2.2","description":"Allows a local ESLint rules directory to be used without a command-line flag","license":"MIT","keywords":["eslint","eslintplugin","eslint-plugin"],"author":{"name":"Teddy Katz"},"scripts":{"test":"npm run lint-single-rulesdir && npm run lint-multiple-rulesdir","lint-single-rulesdir":"eslint --config .eslintrc-single-rulesdir.js *.js **/*.js","lint-multiple-rulesdir":"eslint --config .eslintrc-multiple-rulesdir.js *.js **/*.js"},"repository":{"type":"git","url":"git+https://github.com/not-an-aardvark/eslint-plugin-rulesdir.git"},"devDependencies":{"eslint":">=3","eslint-config-airbnb-base":"^11.2.0","eslint-plugin-import":"^2.6.1"},"engines":{"node":">=4.0.0"},"gitHead":"8f4e7574aa9d1690c538a5e0e68584687cadb0e7","bugs":{"url":"https://github.com/not-an-aardvark/eslint-plugin-rulesdir/issues"},"homepage":"https://github.com/not-an-aardvark/eslint-plugin-rulesdir#readme","_id":"eslint-plugin-rulesdir@0.2.2","_nodeVersion":"16.14.2","_npmVersion":"8.7.0","dist":{"integrity":"sha512-qhBtmrWgehAIQeMDJ+Q+PnOz1DWUZMPeVrI0wE9NZtnpIMFUfh3aPKFYt2saeMSemZRrvUtjWfYwepsC8X+mjQ==","shasum":"84756ec39cd8503b1fe8af6a02a5da361e2bd076","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/eslint-plugin-rulesdir/-/eslint-plugin-rulesdir-0.2.2.tgz","fileCount":11,"unpackedSize":8325,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAX3jfwqNZ+WAsBQw5N3I90VHfzbO0Z5+To4Umnm/NsxAiBbpl+Kcwzx1bpnV+OQ4/howHHJbvv9n72LVe8lccFsSw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjnVF5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp0tg/+Ok2SLANY6d4MAm78HllpfhxG+IqKiw+hrfpyZ7sClOV9rHHW\r\nEJaf401uRSO6SPMQwaXmfN8P3mJvg3FXe8rU+ZeqYNM4qh9SVgPo/NupKkDO\r\nc2Ua8UnmqoJoVXBcSVe41DlTT2gJoVeOv9+hdIsgxEjutjLiZZamm/rkDKTE\r\nMBH86ShR/+Az6GlNy5ngtunkB7RYAw8umkGlP9WmxzzaaYJp/e3mVzHrNqWp\r\nKkCNkoAmJ3BhUFnLRQ8MFsumrEM+AF36CZxZ1UkIuyQ+vFepA8ERT6VeoI+V\r\nnDrKvbVv/8j3RE/nj90/RGhIPyWZRLEhG94MUUg9Wd2C4EKMwENzBRsFbRFm\r\n90vXVFev2H0nv7af+TCdiJ85E0iw33mhnZJzyRXl1TjnZ9K2jLLKQPTfFuoJ\r\npOSYGi3GBKtAhmcrHzI1i7tado2mm9mZzpShZwGCN8OJpRPdQeL+igeK1KcD\r\nr6sLU3EM3QUyOZvTkMxFIPWN58QRYEIM+AB0B0T7mqGjfdCmaEdCp3iP22il\r\nTPHIVeVpgmG4XmFq6EbVlj9DZ5P9+tXEglYYJaCBDg5snee9cO6gd4e5LAuq\r\nGamPSBs3eh5HqvKKjgsBw8BAkjm03IUR+UgNK1HHYjFgr5mL7gdqTTW9FTuc\r\n0aMGUcML4ejk72YExd7gexYufY2r7+L9ACg=\r\n=Tog+\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"anonymous","email":"teddy.katz@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"teddy.katz@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-rulesdir_0.2.2_1671254392986_0.4725069123314065"},"_hasShrinkwrap":false,"contributors":[]}},"dist-tags":{"latest":"0.2.2"},"name":"eslint-plugin-rulesdir","time":{"modified":"2024-10-11T16:37:07.045Z","created":"2022-01-26T17:21:41.555Z","0.1.0":"2017-06-30T07:06:05.342Z","0.2.0":"2021-03-07T00:08:30.684Z","0.2.1":"2021-11-18T02:52:38.559Z","0.2.2":"2022-12-17T05:19:53.148Z"},"readme":"# eslint-plugin-rulesdir\n\nAllows a local directory containing ESLint rules directory to be easily used. This is a substitute for the `--rulesdir` option that can be used without a command-line flag.\n\n**Experimental:** This plugin is currently a proof-of-concept. Its API is likely to change in the future.\n\n## Installation\n\nYou'll first need to install [ESLint](http://eslint.org):\n\n```\n$ npm i eslint --save-dev\n```\n\nNext, install `eslint-plugin-rulesdir`:\n\n```\n$ npm install eslint-plugin-rulesdir --save-dev\n```\n\n**Note:** If you installed ESLint globally (using the `-g` flag) then you must also install `eslint-plugin-rulesdir` globally.\n\n## Usage\n\nTo use this plugin, you must load it manually first and set its `RULES_DIR` property to a path, or an array of paths. The paths are resolved from the current working directory, and indicates where you would like the plugin to load your rules from. This is easiest if you use a JavaScript config file (`.eslintrc.js`), and use a local installation of ESLint.\n\n```js\n// .eslintrc.js\nconst rulesDirPlugin = require('eslint-plugin-rulesdir');\nrulesDirPlugin.RULES_DIR = 'tools/eslint-rules'; // (an example folder where your rules might be stored)\n\n// You can also provide an array if you have multiple folders with rules in:\nrulesDirPlugin.RULES_DIR = ['tools/eslint-rules', 'tools/other-eslint-rules'];\n```\n\nThen you should add `rulesdir` to the plugins section of your `.eslintrc.js` file.\n\n```js\n{\n  plugins: [\n    'rulesdir'\n  ]\n}\n```\n\nFinally, you can configure your local rules, prefixed with `rulesdir/`.\n\n```js\n{\n  rules: {\n    //\n    'rulesdir/my-internal-foo-rule': 'error',\n    'rulesdir/my-internal-bar-rule': ['warn', 2]\n  }\n}\n```\n\nAll of the rules from your configured rules directory will be available. In this example, we assumed there were rule files in `tools/eslint-rules/my-internal-foo-rule.js` and `tools/eslint-rules/my-internal-bar-rule.js`.\n\n## Prior Art\n\n* [`eslint-plugin-local-rules`](https://github.com/cletusw/eslint-plugin-local-rules)\n\n## License\n\n[MIT](https://github.com/not-an-aardvark/eslint-plugin-rulesdir/blob/master/LICENSE.md)","users":{}}