{"name":"@iceworks/eslint-plugin-best-practices","version":"0.2.5","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":"^6.8.0"},"_id":"@iceworks/eslint-plugin-best-practices@0.2.5","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-p0GJICh893Dg8ERy+uomrm1FPiaNxXfoEyowZBlJWGBhskhEi0uNdB2iiZOedz9d0Q1O57Ie3iX6HFstjh4fRg==","shasum":"a50344b6cd31553aa20fce129564a66238547c38","tarball":"http://registry-npm.ywwl.com/@iceworks/eslint-plugin-best-practices/download/@iceworks/eslint-plugin-best-practices-0.2.5.tgz","fileCount":33,"unpackedSize":31700,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfwGxSCRA9TVsSAnZWagAAI74P/iCPChXBJpO+3xI+5OK8\ng/vlR1aIozzoNrooEUFX/gclnWmq1GdLb6/GUDMGdjYXOsJp4k6iRB7wFIK9\n9PlJXZzhJc/1DKq3kQT8aHBJ6u5Fsurjh0puVYGs2OWWCk4bIjeS0Ar9Gjq7\nz/tUoNc3SdjKg3PliWFmRdovvzXl0Prx1jBRdPD274ue/SM3qTd0KJibnThf\n3+jIFAl02eoDU51o6wd24YUQHdH8fVhd7Nrj/Y/Oq0IXPgZtIxVezSYOp6bZ\nGS8TZfsZVp0igdey2nwC3iiLTIq2b4GmsVSkTY+NEDIS00TH81AbjIY+3oWp\nRfeTl95aVzC0jvyOyDhEK/8nUQMk5fIiicpQ2lUq9mLWJBOUmutfjy0Kb+ef\nyzE0tHNSDyEJOSL2oU3MV8wPJAPc0SEEzFsMBvE0N0sLSkiuP2N7BngqXrgY\nfygvOlnBvxpy2Z5FwcrcWAIkgcnW8JKSp4vYXxpGbXc9f6KWthd6tSPDKI10\nwYzczFFok6WjqHiuK3MS5Fnk7Rdguv9R/3i88fFK40pfEMWkVHtPimVkbfcw\nHqQjTuLMtvmniwMfpF6v7c7bRfGCw5eTsRrtDa/hy0LX4VlPEt5vyKWdRrr9\n8ZWPwpPczQSnIEIqQUmG1Y/M7Ypq5GHtcTaSeqKvncjVSeDRpp2XKbBtTc4M\ngr3w\r\n=XsKO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD/Bj3zjFBO7HLHY68wFQbnpK7jsrMwVzpa59A5onfdBQIhAPyx+Rb4yuFu6Y3+kvchLZoifhgluFDj62YPd2Ae3LCi"}],"size":7657,"noattachment":false,"key":"/@iceworks/eslint-plugin-best-practices/-/@iceworks/eslint-plugin-best-practices-0.2.5.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.5_1606446161331_0.5505477475973601"},"_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":1606446161509,"_cnpm_publish_time":1606446161509,"dist-tags":{"beta":"0.2.4-0","latest":"0.2.11"}}