{"name":"@iceworks/eslint-plugin-best-practices","version":"0.2.10","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","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.10","_nodeVersion":"10.24.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-5VyGibvZ9bkwBnijjG1oSo+iAuMi7dxlPUmPDiG2sYsENjQueMLjh7E180a7Ija2n7dWYRWhFpsAP/c93W8gcA==","shasum":"fb441ae2cec4541b83c41d9e3b82686fd0e0e4af","tarball":"http://registry-npm.ywwl.com/@iceworks/eslint-plugin-best-practices/download/@iceworks/eslint-plugin-best-practices-0.2.10.tgz","fileCount":34,"unpackedSize":32896,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhwTgaCRA9TVsSAnZWagAA2TUQAKOj9To31JrI591Iif7X\njtR8KG9dAST5UnICTYEU2dktgvnSuHCB/BzRUjmQGzWTagOm0wHdZVbILHxd\nmdKhju9L5vYiJmJXGtpzWJrFUOHP3Ljk7DI3sPGI+gaT01bi8O2KjZf0V1HY\nwoQMQ/uEi/1hLrBMxcYOqJqDUEILHCUFCsn0m6sjgCmpOyW0QXmJ/qiwcNak\nVx7H/0+x7T9wyabuIElHgwTwSplmpzOHo+6qcOzUXVW94J9cna2mwvHLqtei\npnNKHen43uOW0/rSJKBxiMJjYal0jawyHKDIeEdOD7CCVJLHXnyJTRg+IKxu\nncgjXym+hoUp0hSSF5AM2eAWm7CleyC0wCc7dlc0JljHsdCuu2qgQVyc4dOe\nS9az+//o7G/5aLssm2nRwbLMAzxwMW5qYdWLJLQLnbdAY3Coihfa9ej3dqUN\nTlRWv7Mtc/3A5XH7edUp2Zg621V73F+MVGK2pyZ52KyFwR4+hbSbImU2XiXf\n7LBgjZlLra201dusobT/kDbUoT3GcPyfysWhPE74hEA2ErDE6VW4KTBC5rsL\nE/KceMHvY4X1wsTNAFvkky+W8ppborZeEp29erVjUy0tNklOxXcUMvYGJKrJ\nWbC9+I6uteM/OWMsJsZqYxPFzC2FrMroxMeRxcmQqWq4wvY25buVm9Zo4HbV\nV0/+\r\n=z4xJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA4CmUSZRxPdM7WWqa9B0MQdVSWGh2T90FIFH7W63cqtAiEA2iNgGWgza5sRtqeIY+pTzjI4E9sR9BfLB5z9u0hwCgU="}],"size":8040,"noattachment":false,"key":"/@iceworks/eslint-plugin-best-practices/-/@iceworks/eslint-plugin-best-practices-0.2.10.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.10_1640052761966_0.9562542902777282"},"_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":1640052762102,"_cnpm_publish_time":1640052762102,"dist-tags":{"beta":"0.2.4-0","latest":"0.2.11"}}