{"name":"mrm-task-lint-staged","version":"0.0.1-security","description":"security holding package","repository":{"type":"git","url":"git+https://github.com/npm/security-holder.git"},"gitHead":"ac50be87aafecba67fcacca3b32bf36a1f8f7a71","bugs":{"url":"https://github.com/npm/security-holder/issues"},"homepage":"https://github.com/npm/security-holder#readme","_id":"mrm-task-lint-staged@0.0.1-security","_npmVersion":"5.6.0","_nodeVersion":"8.2.1","_npmUser":{"name":"ehsalazar","email":"ernie@npmjs.com"},"dist":{"integrity":"sha512-VzC+HZSR3z0zCoKZ3Z/VRewexsAw/OCfrdhWwoYTHBIG7fdAKEnTDWK/q5HfhNci05v2ur9QeoYPhykGxNziyQ==","shasum":"8510076f17bec7300f8ae3b9e7fb3392056b5c89","tarball":"http://registry-npm.ywwl.com/mrm-task-lint-staged/download/mrm-task-lint-staged-0.0.1-security.tgz","fileCount":2,"unpackedSize":480,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICT3Vc+1mFinRcVImBfq0CMCqAMQJhr7njZZobO540uvAiABHHhWHZ6EorAL0GN8goiByd1vviIR65P+cup4OW1rOg=="}],"size":436,"noattachment":false,"key":"/mrm-task-lint-staged/-/mrm-task-lint-staged-0.0.1-security.tgz"},"maintainers":[{"name":"ehsalazar","email":"ernie@npmjs.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mrm-task-lint-staged_0.0.1-security_1519415142924_0.9959450701229753"},"_hasShrinkwrap":false,"readme":"<!-- lint-staged -->\n\n# mrm-task-lint-staged\n\n[Mrm](https://github.com/sapegin/mrm) task that adds [lint-staged](https://github.com/okonet/lint-staged).\n\n**Note:** supports only Prettier, ESLint and Stylelint now, pull requests are welcome.\n\n## What it does\n\n- Creates a config in `package.json`\n- Sets up a pre-commit Git hook\n- Installs dependencies\n\nThis tasks will try to infer extensions from your npm scripts. For example, if you have `lint` script that runs ESLint for `js` and `ts` files, the task will add lint-staged rule that runs ESLint for the same extensions. And will overwrite an existing rule if you change it manually and run the task again, but it will try to keepy your custom rules.\n\n## Usage\n\n```\nnpx mrm lint-staged\n```\n\n## Options\n\nSee [Mrm docs](../../docs/Getting_started.md) and [lint-staged docs](https://github.com/okonet/lint-staged/blob/master/README.md#-lint-staged---) for more details.\n\n### `lintStagedRules` (default: infer)\n\nOverrides and custom rules. By default will try to infer by project dependencies.\n\nFor example, a custom extension:\n\n```json\n{\n  \"lintStagedRules\": {\n    \"eslint\": {\n      \"extensions\": [\"js\", \"jsx\", \"mjs\"]\n    }\n  }\n}\n```\n\nOr a custom command:\n\n```json\n{\n  \"lintStagedRules\": {\n    \"eslint\": {\n      \"command\": \"eslint --fix\"\n    }\n  }\n}\n```\n\nOr you can disable one of the default rules:\n\n```json\n{\n  \"lintStagedRules\": {\n    \"prettier\": {\n      \"enabled\": false\n    }\n  }\n}\n```\n\nOr add a custom rule:\n\n```json\n{\n  \"lintStagedRules\": {\n    \"jest\": {\n      \"extensions\": [\"js\"],\n      \"command\": \"jest --bail --findRelatedTests\"\n    }\n  }\n}\n```\n\nAvailable rules are `prettier`, `eslint` and `stylelint`.\n\n## Changelog\n\nThe changelog can be found in [CHANGELOG.md](CHANGELOG.md).\n\n## Contributing\n\nEveryone is welcome to contribute. Please take a moment to review the [contributing guidelines](../../Contributing.md).\n\n## Authors and license\n\n[Artem Sapegin](https://sapegin.me) and [contributors](https://github.com/sapegin/mrm/graphs/contributors).\n\nMIT License, see the included [License.md](License.md) file.\n","publish_time":1519415142972,"_cnpm_publish_time":1519415142972,"dist-tags":{"latest":"7.1.22"}}