{"_id":"@antstudiocz/eslint-plugin-ant-rules","_rev":"1-ba6be8107296c813a14edbf56bcda17e","name":"@antstudiocz/eslint-plugin-ant-rules","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@antstudiocz/eslint-plugin-ant-rules","version":"1.0.0","description":"Internal ANT eslint rules","keywords":["eslint","eslintplugin","eslint-plugin"],"main":"lib/index.js","scripts":{"test":"mocha tests --recursive"},"dependencies":{"requireindex":"~1.2.0"},"devDependencies":{"eslint":"^6.4.0","mocha":"^6.2.0"},"engines":{"node":">=0.10.0"},"gitHead":"7257aae418b174536448af385d68ed41de8e0633","_id":"@antstudiocz/eslint-plugin-ant-rules@1.0.0","_nodeVersion":"12.9.1","_npmVersion":"6.10.2","dist":{"integrity":"sha512-CiV720XWMne/dKpzc98TsSMA4TB/DH67xUEhokDtkcXP58tnZrME/16tfQr+PR2zGTXhaI+TFEfSV/wlvsvqSw==","shasum":"8f563743b5e2da22c36e346dcf49f4e520b15869","tarball":"https://registry.npmjs.org/@antstudiocz/eslint-plugin-ant-rules/-/eslint-plugin-ant-rules-1.0.0.tgz","fileCount":5,"unpackedSize":3938,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdjfB5CRA9TVsSAnZWagAA8TIP/AuACraX/X0y33nkxwlf\nhCr4ZHPykfZPOhj07UV8NxKudsvIflJ8/bFK6u7FkHwpX3hJvtuxv6UOnA+P\nEzpzkoPbl4VxW8Nw68BfAQ2FJTVgVxAkoj7qI7u2BI6jleETqH4NYibTdG7t\nwIdgcH6EXA475Gp0Hvg1RwhVoiq6/pUVreLyFbCVpEPosTz18ATtScUMOtSY\nbIqG+nP1F3qWJbePqlO6fnrcZJLEgF18C6aSogPuMX4nywPdzmfEwPYWjJFM\nWyg9UQHWWBXqKp0bCgizYbXH21IA/OVQ8RdBeZmN5p9LPbumR9bsZDPLK/zO\nZeJvygL9eRK/CgkmZnp3DW6WXZgfTaKpYOuUJbHLg2zmH30GpZwu+Lul94xj\npPus5E1VmXJk8oX2/HDSLLmXlQOp7qvV2ZVv2ZWXJTFpOuhmbRJP0VMmqilP\nf1rQTr2CsvXYjMYPWuUNrQ4h9Tc5ENa+BbgsloGr2vUNZx4J/BCB6x59BJK/\nOVJs3Pbodj82ph76dJgfE34KMUAX9Pg/oeeUBbShOLY+vWHFzd0P3JJm97zh\nV2xuWvQPd/7e5xgfIwN19XwWLVondrHeHUTFx/SZWTGDIJBrgv6AbnQ6GFZl\nSMQp9iQGiDYqcD3r4DCtzI7VLgul3W2Vjpsj2R70udwt4YxCw7i1JgxKQSDT\nAk7u\r\n=fYhg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFpGBXrySIC1qIJxqea2zU9AtitLlWGYr91Z+SHjTxVbAiACg5tGiaVqkuVXnXLZ+AI2UOTgjGJwRAjutF9MOyJ81A=="}]},"maintainers":[{"name":"alesmraz","email":"alesmraz@email.cz"},{"name":"dbalik","email":"db@antstudio.cz"},{"name":"sirpole","email":"martin@brychta.name"}],"_npmUser":{"name":"sirpole","email":"martin@brychta.name"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-ant-rules_1.0.0_1569583224986_0.0786981949817187"},"_hasShrinkwrap":false}},"time":{"created":"2019-09-27T11:20:24.826Z","1.0.0":"2019-09-27T11:20:25.109Z","modified":"2022-04-04T14:24:07.051Z"},"maintainers":[{"name":"alesmraz","email":"alesmraz@email.cz"},{"name":"dbalik","email":"db@antstudio.cz"},{"name":"sirpole","email":"martin@brychta.name"}],"description":"Internal ANT eslint rules","keywords":["eslint","eslintplugin","eslint-plugin"],"readme":"# eslint-plugin-ant-rules\n\nInternal ANT eslint rules\n\n## Installation\n\nYou'll first need to install [ESLint](http://eslint.org):\n\n```\n$ npm install eslint --save-dev\n```\n\nNext, install `eslint-plugin-ant-rules`:\n\n```\n$ npm install @antstudiocz/eslint-plugin-ant-rules --save-dev\n```\n\n## Usage\n\nAdd `ant-rules` to the plugins section of your `package.json` or `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:\n\n```json\n{\n    \"plugins\": [\n        \"ant-rules\"\n    ]\n}\n```\n\n\nThen configure the rules you want to use under the rules section.\n\n**rule output option:**\n- 0 = disable output\n- 1 = danger only\n- 2 = error\n\n**Config object**: define danger function. - _not required_\n\nTRUE = validation\nFALSE = no validation\n\n```json\n{\n    \"rules\": {\n        \"ant-rules/rule-name\": [\n         \t1,\n         \t{\n         \t\t\"innerHTML\" : true,\n         \t\t\"outerHTML\" : true,\n         \t\t\"write\"     : true,\n         \t\t\"writeln\"   : true,\n         \t\t\"src\"       : true,\n         \t\t\"open\"      : true\n         \t}\n         ]\n    }\n}\n```\n\nFunction list: \n- innerHTML\n- outerHTML\n- write\n- writeln\n- src\n- open\n\n## How to add new rules\n\nmake sure you have install Yeoman globally:\n\n```\n$ npm i -g yo\n```\n\nthen install generator-eslint:\n```\n$ npm i -g generator-eslint\n```\nwith this tool you can ease create new rule or new plugin for eslint - https://github.com/eslint/generator-eslint\n\nIf you want to create a new ESLint rule, make sure you're in the top-level (eg. front/js/eslint-plugin-ant-rules) directory of an ESLint repo clone or an ESLint plugin and type:\n\n```\n$ yo eslint:rule\n```\nYou'll be prompted for some information and then it will generate the files necessary for a new rule, including the source file, a test file, and a documentation file.\nAfter that remove unnecessary code in rule and if is possible rewrite it into ES6\n","readmeFilename":"README.md"}