{"name":"@iceworks/eslint-plugin-best-practices","version":"0.1.0","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.0","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-fxpZdlZCE5OLhCuOxc3rT88k70+4yMxdDBF0AnI6EkfNN3aMMNW+PMebA2ri2f3OdVb2j4T9YRIOnfUmc3kVxQ==","shasum":"39ed12f9e83ad1e5d2fc15af4f29c8ca91676fdb","tarball":"http://registry-npm.ywwl.com/@iceworks/eslint-plugin-best-practices/download/@iceworks/eslint-plugin-best-practices-0.1.0.tgz","fileCount":35,"unpackedSize":24199,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfTJ3YCRA9TVsSAnZWagAAkHkP/1hVfPQ9L6MRnMHIfAri\nuUrx7d57lpGGQpcwHCcWeFjK0dA52trc46dNpWQnLIe1xsHbIvZHfx+tEdXa\ngUDSDpl1xIG4Jl0rbNlwXnNeJ1h9BacAK8z5/j+PJR68QxyjX8FBvDl0BrID\nrR19Gzdd3qyqBdgAj8e7wcbF4Y3GLSSz4OtprS6ajYBG/9h/MMVVLREQP3eB\nvu6c06EM1a2qu67KGVhSjk/stl/iU7qq0Vo4nWzDGfftE/n/OM5DiIcEn/zh\nfI0thyZhomkprRc0dHG4w8rSMBDmqZsMA9q5ExKiCcxI7YkOtSj9n5ZeA5cU\nKX2NsMhMB0IPZ/JBm/bFQ1Bk5xzMN7jkvfPq6vPyNqc+QOTdOqLMXcIOmc5j\nL8Uc4osXwYKkdohUiziMXlzvJ3lD7LKSfYn4lFO+IJ+9U6h77dMhn9M1oMQ8\nVgPFL0yv2QfT4mviNLxRa7+5yqHLpm+BxweY1F5Ry2xOlLFAW545R9X5hWPf\nB3O79iOaciplyzrs7I1E5IS9fGx7DVZdXLpPhdr78wt7RZWshdKdFNR8K5+a\nvRNfkH1Cu8E8altxlQPHF9mCfFUCu3Mo4+3OW/hptOrhohdAHHavtTid3zl/\n8epwDGeSX+7r/mLcubcmNgd2wVGAgIMMEo6Dp3mheOJ+60FEH+8wRRzG8TCE\n5+jQ\r\n=gvEp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDFFtbj3nKMrNQYb8VybrjVoCs/77B2xKHML7wKWExdJQIhAIbVeZfntr1x/4wLfFIoUvEfZ4Y0C7ZSmS/FBiIWAN91"}],"size":5178,"noattachment":false,"key":"/@iceworks/eslint-plugin-best-practices/-/@iceworks/eslint-plugin-best-practices-0.1.0.tgz"},"maintainers":[{"name":"alvinhui","email":"alvin.hui@qq.com"},{"name":"empireo","email":"yudong.myd@alibaba-inc.com"},{"name":"fyangstudio","email":"18767120422@163.com"},{"name":"luhengchang228","email":"luhengchang228@126.com"},{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},{"name":"sobear","email":"sobear.me@gmail.com"},{"name":"yuanyan","email":"yuanyan.cao@gmail.com"}],"_npmUser":{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-best-practices_0.1.0_1598856664277_0.3024910471830826"},"_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":1598856664474,"_cnpm_publish_time":1598856664474,"dist-tags":{"beta":"0.2.4-0","latest":"0.2.11"}}