{"name":"@iceworks/eslint-plugin-best-practices","version":"0.1.1","description":"Iceworks doctor best practices eslint plugin.","keywords":["iceworks","doctor","best practices","eslint","eslintplugin","eslint-plugin"],"main":"lib/index.js","publishConfig":{"access":"public"},"scripts":{"test":"mocha tests --recursive"},"dependencies":{"fs-extra":"^9.0.1","line-column":"^1.0.2","path-to-regexp":"^6.1.0","requireindex":"~1.1.0","semver":"^7.3.2"},"devDependencies":{"eslint":"^7.1.0","mocha":"^7.2.0"},"_id":"@iceworks/eslint-plugin-best-practices@0.1.1","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"fyangstudio","email":"18767120422@163.com"},"dist":{"integrity":"sha512-6Z4LNW0IDBkJ/G7xVdRVyxPAoSemD2Xdhv8lPkGl9N1MoOrHs2Irk26iw4GYPi3O9meuhDKkxqT7EUIqff1k+Q==","shasum":"327739a1bc207da5f57c462df70c90c46964799a","tarball":"http://registry-npm.ywwl.com/@iceworks/eslint-plugin-best-practices/download/@iceworks/eslint-plugin-best-practices-0.1.1.tgz","fileCount":35,"unpackedSize":24288,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWFdcCRA9TVsSAnZWagAAv28P/jPZDYHrmFZt8QHJnNCO\nmgWRPX7fFMb4toXGxMLEpTVVye+K1RHmXMDnsrXau/N2A4VkadFDSnz0AoLl\n4ePvJgfdDpg66S+TM1RJcDX71V874ce48TLkAfu8eoqz1niFL9Ex/P5l2dsb\nt+cx5bSIUnP9PvjhKJn9K/pJTY+ZDPxaimaJVzlFxC0SemuN4HYD02rEnvp/\ninLsonZNb62+BLLjm5GvEp/f9OCBY+B8oVDw12TvueI5ZwpmfLexn+ThHD/1\n3503UmdyIReG0X2V85F26YgqHlReQ5wanaW3mlmuxcVJyQR5ZaxvxHPpVEhW\nA9pYNoo7TDb//zBQfHaVmfKbRhXA0YKT3bNR4UfF7cpWwHX9RRzm7NdXVC3Y\n/S1dJ3Uo4juw6YNwNJ+d5hCKn14mvdAo/XOjUQfF0Txd4kRqd6Ix27vPlNAO\n/IAlAGP48zopDcixS2FRREQCQHpT0cSwGe3ziVSDSrcLm9/pgE4PXpSlvgYi\nnLU5aKB3cXzrts6BOf7+tsarJoHsxvPjXpeDKc4TO0AxuJByvg6xs7RDyqlf\ndagasrhmYwZ0ZThMmIn/NSP+9T27H/n733UhxL+9CnLxrPk4s/SHHu6ucanu\nprXi87aMnmPw8GCjrmgh9Y6z/UH/JJLKTHzCwruSbubOd+kXdcnwuSDHKXar\nY1IR\r\n=Jy8t\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDMibvsf8tF2xIeQcaOLnG5hi9frVHAdPDbkgT3AGXQCgIhALzqKFF2EUx+eyzv/UY1JhXQrNpCE5519TSnBiFMXLnf"}],"size":5214,"noattachment":false,"key":"/@iceworks/eslint-plugin-best-practices/-/@iceworks/eslint-plugin-best-practices-0.1.1.tgz"},"maintainers":[{"name":"fyangstudio","email":"18767120422@163.com"},{"name":"luhengchang228","email":"luhengchang228@126.com"},{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},{"name":"alvinhui","email":"alvin.hui@qq.com"},{"name":"empireo","email":"yudong.myd@alibaba-inc.com"},{"name":"sobear","email":"sobear.me@gmail.com"},{"name":"yuanyan","email":"yuanyan.cao@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-best-practices_0.1.1_1599625051613_0.5472046016972625"},"_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":1599625051713,"_cnpm_publish_time":1599625051713,"dist-tags":{"beta":"0.2.4-0","latest":"0.2.11"}}