{"name":"@iceworks/eslint-plugin-best-practices","version":"0.2.11","description":"Iceworks best practices eslint plugin.","keywords":["iceworks","best practices","eslint","eslintplugin","eslint-plugin"],"main":"src/index.js","publishConfig":{"access":"public"},"dependencies":{"@iceworks/spec":"^1.0.0","@mdn/browser-compat-data":"^4.0.5","fs-extra":"^9.0.1","glob":"^7.1.6","line-column":"^1.0.2","path-to-regexp":"^6.1.0","require-all":"^3.0.0","semver":"^7.3.2"},"devDependencies":{"eslint":"^7.22.0"},"_id":"@iceworks/eslint-plugin-best-practices@0.2.11","_nodeVersion":"10.24.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-IsMqWijTyj1c8EBP8oZJhhghz01XUm8hh2AreUvQyi/eCgAcr0MgPXZ94NkXB+1OwCskkiVuXTa+fsooeP0IYA==","shasum":"7602555189c6dccead535eb6a9cc586cf388b353","tarball":"http://registry-npm.ywwl.com/@iceworks/eslint-plugin-best-practices/download/@iceworks/eslint-plugin-best-practices-0.2.11.tgz","fileCount":32,"unpackedSize":30895,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiKGPpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpayBAAmMRWCBli4Rxq1e2molExW4X014mvdALiGk6qXF10VQb3nzL2\r\nCGzbiiz5obLtD9NC8zWDmpo1SPFTQrAhdoHTgSHUou3/Gn2jSDdkQf2/JsxB\r\nBADwEIlZgBjarnzm3VWicTu3+yP8uR+yoqxVSZ/Y07owcdSa2fTx3qGKFaGZ\r\nlzHLqEqIs9w6WjZMDmikwz452Y7yGS6zhkLOCV9VwPTHi6kzG2oeZOWenwrT\r\nBJsYbDs1WxOrz/hWQ6j/QK8gPDKa6+/DuXxPFVaxV/txMIYEUqrNU2+PGYY5\r\ntWeQ+eGtKRqLs7Dp/61sRTP8ilu7RE9xP+FRTBrbBk0GyJBzH2hGXj0KFR+l\r\nR/k0tFu6pCXzl46RSLGSv7BzEHpUHNei1n1VrA7ZjCeOPChTWNJ3X1jagbN2\r\nXuSKILV/NHy3b8lNGQhY631c9tYcYgghVlXlTK6/Tu76fWr+zWrWn3v+7YeW\r\nqXxw1fwD7h8fs4rDSwawZp07QyjVdN1o1LUvkGbINg1swclKJa/r3bserSGV\r\nZNBWHylUUbScvNYe3acxBj/fDOPFQKv7+HlCCGwVzx2KXeULtVHVWXSuG35G\r\nz66+xuqTWkexLxSish5zFIrE3god6BN7w1XkDVtgNQEqt+cA9//xHoWgpbna\r\npR58bxTkGSmpmNDWd9/iumzlQYO5q/f6rtg=\r\n=VskS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBfonFuHPpRWlHOCLORoaKtS176CFC1vzsYt1cI4MSaHAiBSjLPsPLZdO1Kipbr7/l2nebCKNBD/EEVU/HA2htrpuw=="}],"size":7565,"noattachment":false,"key":"/@iceworks/eslint-plugin-best-practices/-/@iceworks/eslint-plugin-best-practices-0.2.11.tgz"},"_npmUser":{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},"directories":{},"maintainers":[{"name":"yuanyan","email":"yuanyan.cao@gmail.com"},{"name":"sobear","email":"sobear.me@gmail.com"},{"name":"empireo","email":"yudong.myd@alibaba-inc.com"},{"name":"alvinhui","email":"alvin.hui@qq.com"},{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},{"name":"luhengchang228","email":"luhengchang228@126.com"},{"name":"fyangstudio","email":"18767120422@163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-best-practices_0.2.11_1646814185767_0.8257517818865763"},"_hasShrinkwrap":false,"readme":"# @iceworks/eslint-plugin-best-practices\n\nIceworks best practices eslint plugin.\n\n## Installation\n\nInstall [esLint](http://eslint.org), `@iceworks/eslint-plugin-best-practices`:\n\n```shell\n$ npm install --save-dev eslint @iceworks/eslint-plugin-best-practices\n```\n\n## Usage\n\nRecommend use [@iceworks/spec](https://www.npmjs.com/package/@iceworks/spec)\n\nThen configure the rules you want to use under the rules section.\n\n```js\n// .eslintrc.js\nconst { getESLintConfig } = require('@iceworks/spec');\n\n// getESLintConfig(rule: 'rax'|'rax-ts'|'react'|'react-ts', customConfig?);\nmodule.exports = getESLintConfig('rax', {\n  // custom config it will merge into main config\n  rules: {\n    '@iceworks/best-practices/rule-name': 'off',\n  },\n});\n```\n\n## Supported Rules\n\n- [`deps-no-ice-scripts`](https://github.com/ice-lab/spec/tree/master/packages/eslint-plugin-best-practices/docs/rules/deps-no-ice-scripts.md) It is not recommended to use ice-scripts, the new version is ice.js.\n- [`deps-no-resolutions`](https://github.com/ice-lab/spec/tree/master/packages/eslint-plugin-best-practices/docs/rules/deps-no-resolutions.md) It is not recommended to use resolutions to lock the version.\n- [`deps-no-router-library`](https://github.com/ice-lab/spec/tree/master/packages/eslint-plugin-best-practices/docs/rules/deps-no-router-library.md) It is not recommended to directly rely on routing libraries, such as react-router-dom, react-router.\n- [`no-broad-semantic-versioning`](https://github.com/ice-lab/spec/tree/master/packages/eslint-plugin-best-practices/docs/rules/no-broad-semantic-versioning.md) Recommended the semantic versioning include everything greater than a particular version in the same major range.\n- [`no-http-url`](https://github.com/ice-lab/spec/tree/master/packages/eslint-plugin-best-practices/docs/rules/no-http-url.md) Recommended the http url switch to HTTPS.\n- [`no-js-in-ts-project`](https://github.com/ice-lab/spec/tree/master/packages/eslint-plugin-best-practices/docs/rules/no-js-in-ts-project.md) It is not recommended to use js and ts files at the same time.\n- [`no-lowercase-component-name`](https://github.com/ice-lab/spec/tree/master/packages/eslint-plugin-best-practices/docs/rules/no-lowercase-component-name.md) It is not recommended to name components in lower case.\n- [`recommend-add-line-height-unit`](https://github.com/ice-lab/spec/tree/master/packages/eslint-plugin-best-practices/docs/rules/recommend-add-line-height-unit.md) Recommended to add unit for line-height which is more than 5.\n- [`recommend-functional-component`](https://github.com/ice-lab/spec/tree/master/packages/eslint-plugin-best-practices/docs/rules/recommend-functional-component.md) It is not recommended to use class component.\n- [`recommend-polyfill`](https://github.com/ice-lab/spec/tree/master/packages/eslint-plugin-best-practices/docs/rules/recommend-polyfill.md) Recommend API which not supported in iOS 9 to add polyfill file.\n- [`recommend-update-rax`](https://github.com/ice-lab/spec/tree/master/packages/eslint-plugin-best-practices/docs/rules/recommend-update-rax.md) Rax version < 1.0 , recommend to update Rax.\n","publish_time":1646814185918,"_cnpm_publish_time":1646814185918,"dist-tags":{"beta":"0.2.4-0","latest":"0.2.11"}}