{"name":"@iceworks/eslint-plugin-best-practices","version":"0.2.2","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":"^2.0.3","fs-extra":"^9.0.1","line-column":"^1.0.2","path-to-regexp":"^6.1.0","require-all":"^3.0.0","semver":"^7.3.2"},"devDependencies":{"eslint":"^6.8.0"},"_id":"@iceworks/eslint-plugin-best-practices@0.2.2","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-Hf4cWrok64DY9VZX9hRdpXmNmqAHZaE5BtBN1lFTCN+8fZ239+tEbm2M9PXoco+BztCyxRK0XMmIW2/zCT2yJQ==","shasum":"4487e7ac6de53faff5206bfcac1cec7b66e74b42","tarball":"http://registry-npm.ywwl.com/@iceworks/eslint-plugin-best-practices/download/@iceworks/eslint-plugin-best-practices-0.2.2.tgz","fileCount":31,"unpackedSize":28554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfo2tECRA9TVsSAnZWagAA0H8P/1bQ9TecqW51I6ZOm30n\nR7Fjo8bbW9X7X9JA2ttOE8IJJu2a5OOMD63Ya02VP9l+wF1vjcuNlNNHeDHS\ncDx4oHuu2ywc+KALKNStQsq+odDHGIDHCiJGxCf7HPceJ4bytkCtuUrP4X7y\niLNkezCyVxoBv9zaKmTqq5DswjL8at+mY38JgW+ooetQZOrCtdZOf2ceySMd\nmOLBGGnwgSxomPY6ZZTPhwD2FPHUJ7HjSRh4BIbwSqGp+wphMYjZcQazZN4w\n610RoBggj1EEZgMRheINttVp+EF9AyyzrTOBSr2C6umRaGKtc0mheZDEdlZc\nd+D4PqOq/pvcLCahQpmqY84SqtzI6bEtl60eidkuevurYGTwgke4cCtEpC+4\n3JJl3CYWmVUkbme8OmQlzD9fqCc4WEqwRETdXPp9NFdFBQyTSbhva8+/W5su\nRpFiGXmajDaq+I5MWJruJMnoDcgA6RNmCU+YMnAw/m+BswQ4ziNny4lFsU0R\ngVa8404t1IlSLV1WRS6dIHKJxVOIPj2XH0PlNc65m7gpkU9p3j7gZkh74FMU\nKQPKYgqXaWa8IZMH7RHAS2GIyVFDGNTrRxiwAmlipKivn3P23EbDJRpCefMz\n8kNtY0Q/w4Aep3yovbOweMbVjskzKgULihg+R877AQydS4O5Srwyx2Z3jCSR\nxmDz\r\n=7QYb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC26Vclfb7mKjQp27gXYObUIdQDaKUxqGxKKPxC8yg7QgIgVLQXWypWCpFuzYFDSiFfVCX+0Hc1O4XMnI9WsadEDz8="}],"size":6859,"noattachment":false,"key":"/@iceworks/eslint-plugin-best-practices/-/@iceworks/eslint-plugin-best-practices-0.2.2.tgz"},"_npmUser":{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},"directories":{},"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"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-best-practices_0.2.2_1604545347957_0.16181702985201452"},"_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":1604545348112,"_cnpm_publish_time":1604545348112,"dist-tags":{"beta":"0.2.4-0","latest":"0.2.11"}}