{"name":"@iceworks/eslint-plugin-best-practices","version":"0.2.0","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","requireindex":"~1.1.0","semver":"^7.3.2"},"devDependencies":{"eslint":"^6.8.0"},"_id":"@iceworks/eslint-plugin-best-practices@0.2.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"fyangstudio","email":"18767120422@163.com"},"dist":{"integrity":"sha512-nXVbayjgKJzQp8uB4W/LH98xGNcIuhYKyV73CT0YqP4H2BYWF8BROjWdBqPziMJ6O6rgZ3eXiQ3XaqffmIM3PQ==","shasum":"21dbc339817c60a455da2336895f326484b46648","tarball":"http://registry-npm.ywwl.com/@iceworks/eslint-plugin-best-practices/download/@iceworks/eslint-plugin-best-practices-0.2.0.tgz","fileCount":31,"unpackedSize":26834,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmSWjCRA9TVsSAnZWagAAfz0P/AuH3H5HwhBLm3Mp/gH4\nVJA58xLGIZhgUjQonW09UCM0Ju6z91fsKEwyVH9rMkiqHQjPy0QKIGiKtAo9\nSEDbB8hS73mqwYxeE6aXpVeb8HA3/jzNn66INjpIIFTqXq4oW9akalXEvqQY\nH7ECHrTM4PqMAFxtXdgvysW8F/X/hY/R+Uh+RTDI0K2SX3T02sU59xBloBcf\nWmKlyI8OtLGypsYyO40fEsCZouNX/H2peO7pdDroSErMm6hs5GYB5sFj8uU5\n9iRzmTtdj/3yuII621F2dUsJQLQXKlcA3lu9L2FBknb6shuCucpQIU+oRUOL\nRwgOKGrxIKW9L4VPOCYdwEsSJdkRDXaLIFVDxotLk6dBl/ci92ZPb1MJyPD+\nYy8KRfURW6vWVeRje2Ud5G8VHNA+/dKPkEXJrmmhrEDvqdy2ij9TxupMfuLB\nZAfhaojtrl36OgNFBWzd36EWx2bIae/vQHeNCF6lq2lo/Mfi+d8JwLEoj4UA\n0P23m6JArFcBLNFRBJPjgMr7Q+XFb3yrOBL43x0PnmaLWmisp3dgxLKvJwZz\nNpi6aZKwi8rJaP7yEVGGhrpNU/ScRJsttMrlUeAGuID9Ldfy+JjVtXvCvXqV\nvnPrC1nlHNfTXZ4xgDg8aGmWcLFdV8Er3xm5hWTpW5U+MH2tcRio5uSQG9Fw\nQvnb\r\n=fPWW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGIPow2sUl7qgqealG42/VHs4QcZsr31jadDyFCIENxDAiARUxE4SRXuTzhxRSMQYlQSK+5pr8mOPe3YZQi7AxL03Q=="}],"size":6423,"noattachment":false,"key":"/@iceworks/eslint-plugin-best-practices/-/@iceworks/eslint-plugin-best-practices-0.2.0.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.2.0_1603872162592_0.37749521571681677"},"_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":1603872162716,"_cnpm_publish_time":1603872162716,"dist-tags":{"beta":"0.2.4-0","latest":"0.2.11"}}