{"_rev":"3-b9e83a60c9f95ca76a5f18e8050eaad7","time":{"created":"2022-09-08T14:28:36.800Z","1.0.4":"2022-09-08T14:09:11.578Z","modified":"2022-09-08T14:28:37.140Z","1.0.5":"2022-09-08T14:28:36.984Z"},"_id":"@boon-tv/eslint-plugin","name":"@boon-tv/eslint-plugin","dist-tags":{"latest":"1.0.5"},"versions":{"1.0.5":{"name":"@boon-tv/eslint-plugin","version":"1.0.5","main":"dist/index.js","repository":{"type":"git","url":"git+https://github.com/boon-tv/eslint-plugin.git"},"scripts":{"cleanup":"rm -rf ./dist","build":"npm run cleanup && tsc","prepublishOnly":"npm run build"},"dependencies":{"@typescript-eslint/experimental-utils":"5.9.0","@typescript-eslint/scope-manager":"5.9.0","@typescript-eslint/type-utils":"5.9.0","semver":"7.3.5","tsutils":"3.21.0"},"devDependencies":{"@types/node":"17.0.21","@types/semver":"7.3.9","husky":"7.0.4","install-peers-cli":"2.2.0","typescript":"4.6.3"},"peerDependencies":{"@typescript-eslint/parser":"^5.0.0","eslint":"^6.0.0 || ^7.0.0 || ^8.0.0"},"peerDependenciesMeta":{"typescript":{"optional":true}},"publishConfig":{"registry":"https://registry.npmjs.org"},"gitHead":"cedc806af5ae763d506c5756bf1ce779dd4a022b","description":"## Installation","bugs":{"url":"https://github.com/boon-tv/eslint-plugin/issues"},"homepage":"https://github.com/boon-tv/eslint-plugin#readme","_id":"@boon-tv/eslint-plugin@1.0.5","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-2P6fxIdxK70kG0mqqHBBrArf/av2XTrcQc/YFNZHkryiU59DPF55oZCNS9d0Mw4rMLqMEadKz7GSJ4mXEIJqXg==","shasum":"5c51715cd07121190cb8900a6af2688c7b9e062b","tarball":"https://registry.npmjs.org/@boon-tv/eslint-plugin/-/eslint-plugin-1.0.5.tgz","fileCount":9,"unpackedSize":17366,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAwRcpshnaCdiuMQo1/UXfpyl84vxJehfznVs+lbCnkvAiBNQKh/FNlLRZGU8107H2T67VNRwQxsAUGSG21jPlJrYQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjGfwVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpX9BAAm5VdkROeBALSSEFinG4veL0lXgB+BUWtnG7dF9BjsAXpuXki\r\ndI5SiGezwRs8esizsmIz60fRG8xx5FHXGPmakcjcHrlCeTRIrR4ORqYB6Mlg\r\n8GSb/y8XK1tV37t2LJmnBpHYgZr7B4fUM83zgxxld4l3RHTCo2J3E8nrAJm3\r\n4XCv/WdQ47/dM9vF5sR0liQIPikKwVvQU3RNl0dPtyjuft4OROf5uibnlNvK\r\nErs+A6EuEvbj2E+ltYk5wR30N/rBbgvt8W89SnkHNmVY03rgjOUi8RKmyi2y\r\nYa7DsuftaV+lMDvGiAkKnsk8b6lTZLXyHbuyANT014AEEQeKWRrn9REeRqrI\r\naz4+uVXuPd4qIJKuFqneCmVI9bPealb26uLvp0VlFuJEy+SL98U5nqguf2EW\r\nkkdJD8uJBiak83v1899CEXAxfkx4SOoeJ28qvKd+iZGuy4f71hGOa123iqAu\r\nJ7SZD3yCmc0stiSvYG5I7QWPIaQaygNQFWeufEY6iURTuA9BqJFUtnD8D1rH\r\ngELBGLpT94sIUexkq/HNrHoeG5siy8/HLW8IavT7G4tmILQaNXs44DcIqj5V\r\n04p7U3Pl3MYOSPLQ6x5hfaHmZ4v/hbuTakfdhteGEDPzprTxkgxJgcLTlHK7\r\n/UCE236CW5hMmZFX+haY0asg7TfH/GjgxRE=\r\n=UDC6\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"boon-fredslund","email":"fredslund@booncoach.com"},"directories":{},"maintainers":[{"name":"zoulember","email":"Zoulember@gmail.com"},{"name":"boon-fredslund","email":"fredslund@booncoach.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin_1.0.5_1662647316869_0.6135607616804244"},"_hasShrinkwrap":false}},"maintainers":[{"name":"zoulember","email":"Zoulember@gmail.com"},{"name":"boon-fredslund","email":"fredslund@booncoach.com"}],"description":"## Installation","homepage":"https://github.com/boon-tv/eslint-plugin#readme","repository":{"type":"git","url":"git+https://github.com/boon-tv/eslint-plugin.git"},"bugs":{"url":"https://github.com/boon-tv/eslint-plugin/issues"},"readme":"# @boon-tv/eslint-plugin\n\n## Installation\n\n### Yarn\n```\nyarn add -D @boon-tv/eslint-plugin\n```\n\n### NPM\n```\nnpm i --dev @boon-tv/eslint-plugin\n```\n\n## Configuration\n\nAdd the plugin and preset to your eslint config (`parserOptions.project` is also required):\n```json\n{\n    \"plugins\": [\"@boon-tv\"],\n    \"extends\": [\"plugin:@boon-tv/recommended\"],\n    \"parserOptions\": {\n        \"project\": \"./tsconfig.json\"\n    }\n}\n```\n\n## Rules\n\n### @boon-tv/strict-short-circuit-expressions\n\nProvides more strict rules to short circuit expressions. \nThis is particularly useful when working with `react` and even more so with `react-native` where \nleaking unwanted variables into JSX can lead to crashes.\n\nThe rule only triggers in inline conditional statements while special statements such as `if`, `while` and `for` are ignored.\n\nHere are some examples of statements that will trigger and error and their allowed alternative:\n\n```ts\n// String & nullish string variables\nvariable && result  // ❌\n!!variable && result // ✅\n\n// Number & nulish number variables\nvariable && result  // ❌\narrayVaraible.length && result // ❌\n!!variable && result // ✅\n!!arrayVariable.length && result // ✅\narrayVariable.length > 0 && result // ✅\n\n// Object & nulish object variables\nvariable && result  // ❌\n!!variable && result // ✅\n\n// \"any\" variables\nvariable && result  // ❌\n!!variable && result // ✅\n```\n","readmeFilename":"README.md"}