{"_id":"@alloyteam/eslint-config-react","_rev":"11-6ab0f72ea802c09aba942bc94ab2a087","name":"@alloyteam/eslint-config-react","description":"AlloyTeam react ESLint configuration","dist-tags":{"latest":"1.0.0-beta.1"},"versions":{"0.0.2":{"name":"@alloyteam/eslint-config-react","version":"0.0.2","description":"alloyteam eslint react code guide","main":"./eslintrc.js","scripts":{"test":"eslint -c eslintrc.js ./test/src/*.js"},"repository":{"type":"git","url":"git+https://github.com/steamerjs/code-lint.git"},"keywords":["alloyteam","eslint","code","guide"],"author":{"name":"heyli"},"license":"ISC","bugs":{"url":"https://github.com/steamerjs/code-lint/issues"},"homepage":"https://github.com/steamerjs/code-lint#readme","publishConfig":{"access":"public"},"dependencies":{"@alloyteam/eslint-config-standard":"^0.0.2","eslint-plugin-react":"^7.1.0"},"devDependencies":{"babel-eslint":"^7.2.3","eslint":"^4.0.0","eslint-config-standard":"^10.2.1","eslint-plugin-babel":"^4.1.1","eslint-plugin-html":"^3.0.0","eslint-plugin-import":"^2.3.0","eslint-plugin-node":"^5.0.0","eslint-plugin-promise":"^3.5.0","eslint-plugin-standard":"^3.0.1"},"_id":"@alloyteam/eslint-config-react@0.0.2","_npmVersion":"5.0.3","_nodeVersion":"8.0.0","_npmUser":{"name":"lcxfs1991","email":"lcxfs1991@gmail.com"},"dist":{"integrity":"sha512-L9a/xB3ZeLW4QBiFQW0zlVzsJJeZ205/R/dO0neCquUAEdAiN5ulq+Q6rUGpRDsWCPRhL/qBoxNg/dUpAAIwjQ==","shasum":"70abd7a53fa4f0cf37e980c015f83bc98d74e910","tarball":"https://registry.npmjs.org/@alloyteam/eslint-config-react/-/eslint-config-react-0.0.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEfONaoyj2/AXTIzF8agY/KOXeVjEjKOdJt6Zron1maRAiEAn/tGQPR/1rpIsHWloz0O/YfOjygqZnwRAbIryH4ue+M="}]},"maintainers":[{"name":"lcxfs1991","email":"lcxfs1991@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-config-react-0.0.2.tgz_1497547259725_0.8974228834267706"}},"0.0.3":{"name":"@alloyteam/eslint-config-react","version":"0.0.3","description":"alloyteam eslint react code guide","main":"./eslintrc.js","scripts":{"test":"eslint -c eslintrc.js ./test/src/*.js"},"repository":{"type":"git","url":"git+https://github.com/steamerjs/code-lint.git"},"keywords":["alloyteam","eslint","code","guide"],"author":{"name":"heyli"},"license":"ISC","bugs":{"url":"https://github.com/steamerjs/code-lint/issues"},"homepage":"https://github.com/steamerjs/code-lint#readme","publishConfig":{"access":"public"},"dependencies":{"@alloyteam/eslint-config-standard":"^0.0.3","eslint-plugin-react":"^7.1.0"},"devDependencies":{"babel-eslint":"^7.2.3","eslint":"^4.0.0","eslint-config-standard":"^10.2.1","eslint-plugin-babel":"^4.1.1","eslint-plugin-html":"^3.0.0","eslint-plugin-import":"^2.3.0","eslint-plugin-node":"^5.0.0","eslint-plugin-promise":"^3.5.0","eslint-plugin-standard":"^3.0.1"},"_id":"@alloyteam/eslint-config-react@0.0.3","_shasum":"681ee66974baa85e4101b744afaa15edd054f45a","_from":".","_npmVersion":"2.14.20","_nodeVersion":"4.4.0","_npmUser":{"name":"lcxfs1991","email":"lcxfs1991@gmail.com"},"dist":{"shasum":"681ee66974baa85e4101b744afaa15edd054f45a","tarball":"https://registry.npmjs.org/@alloyteam/eslint-config-react/-/eslint-config-react-0.0.3.tgz","integrity":"sha512-XYa7FfVxjEFl1MSLFX0Yiqc/W1yi2+iMAhnWJOyrHpTbZEZLCczvEHZQRR1qmi/8SeV2PDsBXXLxgcYo+/OG/Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIALEGHaujz47zElZMtici5IPpqIhJVSpPi1sccbZF3IjAiAbYhGBQS+YaTB1jPGtoh/3rvTUPBU2JI/fSX04f24ldA=="}]},"maintainers":[{"name":"alloyteam2008","email":"alloyteam@qq.com"},{"name":"lcxfs1991","email":"lcxfs1991@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-config-react-0.0.3.tgz_1497584697940_0.23404127825051546"}},"0.0.4":{"name":"@alloyteam/eslint-config-react","version":"0.0.4","description":"alloyteam eslint react code guide","main":"./eslintrc.js","scripts":{"test":"eslint -c eslintrc.js ./test/src/*.js"},"repository":{"type":"git","url":"git+https://github.com/steamerjs/code-lint.git"},"keywords":["alloyteam","eslint","code","guide"],"author":{"name":"heyli"},"license":"ISC","bugs":{"url":"https://github.com/steamerjs/code-lint/issues"},"homepage":"https://github.com/steamerjs/code-lint#readme","publishConfig":{"access":"public"},"dependencies":{"@alloyteam/eslint-config-standard":"^0.0.4","eslint-plugin-react":"^7.1.0"},"devDependencies":{"babel-eslint":"^7.2.3","eslint":"^4.0.0","eslint-config-standard":"^10.2.1","eslint-plugin-babel":"^4.1.1","eslint-plugin-html":"^3.0.0","eslint-plugin-import":"^2.3.0","eslint-plugin-node":"^5.0.0","eslint-plugin-promise":"^3.5.0","eslint-plugin-standard":"^3.0.1"},"_id":"@alloyteam/eslint-config-react@0.0.4","_shasum":"8d19d10aad88a1a799c95dfd19952c89e3530af8","_from":".","_npmVersion":"2.14.20","_nodeVersion":"4.4.0","_npmUser":{"name":"lcxfs1991","email":"lcxfs1991@gmail.com"},"dist":{"shasum":"8d19d10aad88a1a799c95dfd19952c89e3530af8","tarball":"https://registry.npmjs.org/@alloyteam/eslint-config-react/-/eslint-config-react-0.0.4.tgz","integrity":"sha512-d0pBvjD3cu6KOVrVbw/4SgZSlPkAdvvSQ3FXARN37Lq9fZ3P4QmN4+0XUXFqVJuoP5q1ApubXhZCM9RxOxnrJQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFT8mGI+IsWKMc7b8LrxVnnowY67VGOJ+Bkc2w7WSmOKAiEA9BypJMl4HQ+w6FxumiUbX29Ch+lhALV8rk9OCh1OiCU="}]},"maintainers":[{"name":"alloyteam2008","email":"alloyteam@qq.com"},{"name":"lcxfs1991","email":"lcxfs1991@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-config-react-0.0.4.tgz_1497584951071_0.2049594975542277"}},"0.0.5":{"name":"@alloyteam/eslint-config-react","version":"0.0.5","description":"alloyteam eslint react code guide","main":"./eslintrc.js","scripts":{"test":"eslint -c eslintrc.js ./test/src/*.js"},"repository":{"type":"git","url":"git+https://github.com/steamerjs/code-lint.git"},"keywords":["alloyteam","eslint","code","guide"],"author":{"name":"heyli"},"license":"ISC","bugs":{"url":"https://github.com/steamerjs/code-lint/issues"},"homepage":"https://github.com/steamerjs/code-lint#readme","publishConfig":{"access":"public"},"dependencies":{"@alloyteam/eslint-config-standard":"^0.0.5","eslint-plugin-react":"^7.1.0"},"devDependencies":{"babel-eslint":"^7.2.3","eslint":"^4.0.0","eslint-config-standard":"^10.2.1","eslint-plugin-babel":"^4.1.1","eslint-plugin-html":"^3.0.0","eslint-plugin-import":"^2.3.0","eslint-plugin-node":"^5.0.0","eslint-plugin-promise":"^3.5.0","eslint-plugin-standard":"^3.0.1"},"_id":"@alloyteam/eslint-config-react@0.0.5","_shasum":"c8ac3e5df40036f4c9eae6bfe08f92c019e56494","_from":".","_npmVersion":"2.14.20","_nodeVersion":"4.4.0","_npmUser":{"name":"lcxfs1991","email":"lcxfs1991@gmail.com"},"dist":{"shasum":"c8ac3e5df40036f4c9eae6bfe08f92c019e56494","tarball":"https://registry.npmjs.org/@alloyteam/eslint-config-react/-/eslint-config-react-0.0.5.tgz","integrity":"sha512-7RgXIggUK5U51TSOTX5EiGbMposMVxpKFkc433Sl3St5oF+JUWsJHmpNjjzgqaJR6ZLm3JknFCcA9ajXRXeTOg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHU6+3iaj8sxCNhxaUrnUkKYvGfZEnHNhL1su+y9I7RuAiAKU1p1E3xD2ENcZtBtpEOG/+3ZO8bF/zVSqUTY6G/hDw=="}]},"maintainers":[{"name":"alloyteam2008","email":"alloyteam@qq.com"},{"name":"lcxfs1991","email":"lcxfs1991@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-config-react-0.0.5.tgz_1497605803441_0.846157168969512"}},"0.0.7":{"name":"@alloyteam/eslint-config-react","version":"0.0.7","description":"alloyteam eslint react code guide","main":"./eslintrc.js","scripts":{"test":"eslint -c eslintrc.js ./test/src/*.js"},"repository":{"type":"git","url":"git+https://github.com/steamerjs/code-lint.git"},"keywords":["alloyteam","eslint","code","guide"],"author":{"name":"heyli"},"license":"MIT","bugs":{"url":"https://github.com/steamerjs/code-lint/issues"},"homepage":"https://github.com/steamerjs/code-lint#readme","publishConfig":{"access":"public"},"dependencies":{"@alloyteam/eslint-config-standard":"^0.0.7","eslint-plugin-react":"^7.1.0"},"devDependencies":{"babel-eslint":"^7.2.3","eslint":"^4.0.0","eslint-config-standard":"^10.2.1","eslint-plugin-babel":"^4.1.1","eslint-plugin-html":"^3.0.0","eslint-plugin-import":"^2.3.0","eslint-plugin-node":"^5.0.0","eslint-plugin-promise":"^3.5.0","eslint-plugin-standard":"^3.0.1"},"_id":"@alloyteam/eslint-config-react@0.0.7","_shasum":"f0853b97ca492af17753b393b61650e8337f5692","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.0","_npmUser":{"name":"lcxfs1991","email":"lcxfs1991@gmail.com"},"dist":{"shasum":"f0853b97ca492af17753b393b61650e8337f5692","tarball":"https://registry.npmjs.org/@alloyteam/eslint-config-react/-/eslint-config-react-0.0.7.tgz","integrity":"sha512-IFFh2x8IsUXOY9IH+0klkrzLqlsoE93+m890CGwaY+3H4bliCDgk6q9g3iv6/taCeFZ0kLn5ykQ+j+nvvDiDvQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDGkGQee3ifTRlGfiypxsSgTV66hqKWsF5ibQVSnVhzFAiAS+DkfpRDeYeVot0iYvISjj3GiZagazRMoVBR7jZ2kIA=="}]},"maintainers":[{"name":"alloyteam2008","email":"alloyteam@qq.com"},{"name":"lcxfs1991","email":"lcxfs1991@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-config-react-0.0.7.tgz_1501475568943_0.051066241692751646"}},"0.0.8":{"name":"@alloyteam/eslint-config-react","version":"0.0.8","description":"alloyteam eslint react code guide","main":"./eslintrc.js","scripts":{"test":"eslint -c eslintrc.js ./test/src/*.js"},"repository":{"type":"git","url":"git+https://github.com/steamerjs/code-lint.git"},"keywords":["alloyteam","eslint","code","guide"],"author":{"name":"heyli"},"license":"MIT","bugs":{"url":"https://github.com/steamerjs/code-lint/issues"},"homepage":"https://github.com/steamerjs/code-lint#readme","publishConfig":{"access":"public"},"dependencies":{"@alloyteam/eslint-config-standard":"^0.0.8","eslint-plugin-react":"^7.1.0"},"devDependencies":{"babel-eslint":"^7.2.3","eslint":"^4.0.0","eslint-config-standard":"^10.2.1","eslint-plugin-babel":"^4.1.1","eslint-plugin-html":"^3.0.0","eslint-plugin-import":"^2.3.0","eslint-plugin-node":"^5.0.0","eslint-plugin-promise":"^3.5.0","eslint-plugin-standard":"^3.0.1"},"_id":"@alloyteam/eslint-config-react@0.0.8","_npmVersion":"5.3.0","_nodeVersion":"8.2.0","_npmUser":{"name":"lcxfs1991","email":"lcxfs1991@gmail.com"},"dist":{"integrity":"sha512-Ctq2h0sRAgD1I4hdXqZQ5NZyN4jMgW0V8tcZC1rpDQk/f+Pm/+HxcsMPwdClrag0iokPnYb5covfEn0Ohu2pGg==","shasum":"d64e47876fd24e5abd83861e626a3e7ea977bf96","tarball":"https://registry.npmjs.org/@alloyteam/eslint-config-react/-/eslint-config-react-0.0.8.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDG87QTKDw7/FEcgHJUNJTzwnHGvnm3EP41q0wIaUPkigIgMRPQblzeU/V6tuE+/reBVkR8uuK8EHdxwPq1zFVWJi4="}]},"maintainers":[{"name":"alloyteam2008","email":"alloyteam@qq.com"},{"name":"lcxfs1991","email":"lcxfs1991@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-config-react-0.0.8.tgz_1502506564715_0.08110564853996038"}},"0.0.9":{"name":"@alloyteam/eslint-config-react","version":"0.0.9","description":"alloyteam eslint react code guide","main":"./eslintrc.js","scripts":{"test":"eslint -c eslintrc.js ./test/src/*.js"},"repository":{"type":"git","url":"git+https://github.com/steamerjs/code-lint.git"},"keywords":["alloyteam","eslint","code","guide"],"author":{"name":"heyli"},"license":"MIT","bugs":{"url":"https://github.com/steamerjs/code-lint/issues"},"homepage":"https://github.com/steamerjs/code-lint#readme","publishConfig":{"access":"public"},"dependencies":{"@alloyteam/eslint-config-standard":"^0.0.9","eslint-plugin-react":"^7.1.0"},"devDependencies":{"babel-eslint":"^7.2.3","eslint":"^4.0.0","eslint-config-standard":"^10.2.1","eslint-plugin-babel":"^4.1.1","eslint-plugin-html":"^3.0.0","eslint-plugin-import":"^2.3.0","eslint-plugin-node":"^5.0.0","eslint-plugin-promise":"^3.5.0","eslint-plugin-standard":"^3.0.1"},"_id":"@alloyteam/eslint-config-react@0.0.9","_shasum":"73888f82a8819533cf30ddf997d6e1e49e081186","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.0","_npmUser":{"name":"lcxfs1991","email":"lcxfs1991@gmail.com"},"dist":{"shasum":"73888f82a8819533cf30ddf997d6e1e49e081186","tarball":"https://registry.npmjs.org/@alloyteam/eslint-config-react/-/eslint-config-react-0.0.9.tgz","integrity":"sha512-CSTdw4+lsLrVODCa1jTTiO790JptQXZkwtDYPpF27O5uJL+kn7n/P12v3ZjCLxPLM7NnzJgxBDLM0/urTdnk9g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHR0ge45EkkoVEDgOxfGdz6pn4rU20E920Xy4Yqh2SdiAiEA6Hbgt7fhKtkCxb24uptqI8bb3l8bM9VDORUMNaMTbbk="}]},"maintainers":[{"name":"alloyteam2008","email":"alloyteam@qq.com"},{"name":"lcxfs1991","email":"lcxfs1991@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-config-react-0.0.9.tgz_1503302956773_0.5704729126300663"}},"1.0.0-beta.1":{"name":"@alloyteam/eslint-config-react","version":"1.0.0-beta.1","description":"AlloyTeam react ESLint configuration","main":"index.js","scripts":{"start":"npm run lint && npm test","test":"node ./test/index.js","lint":"eslint . --ignore-pattern bad.js"},"repository":{"type":"git","url":"git+https://github.com/steamerjs/code-lint.git"},"keywords":["eslint","react","eslintconfig","config","alloyteam","javascript","styleguide"],"author":{"name":"xcatliu","email":"xcatliu@gmail.com"},"contributors":[{"name":"heyli","email":"lcxfs1991@gmail.com"}],"license":"MIT","bugs":{"url":"https://github.com/steamerjs/code-lint/issues"},"homepage":"https://github.com/steamerjs/code-lint#readme","publishConfig":{"access":"public"},"dependencies":{"@alloyteam/eslint-config-standard":"^0.0.9","eslint-plugin-react":"^7.1.0","babel-eslint":"^7.2.3"},"devDependencies":{"eslint":"^4.2.0"},"_id":"@alloyteam/eslint-config-react@1.0.0-beta.1","_shasum":"45765c1c01c5d23a5cf009378668191f8c053ec8","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.0","_npmUser":{"name":"xcatliu","email":"xcatliu@gmail.com"},"dist":{"shasum":"45765c1c01c5d23a5cf009378668191f8c053ec8","tarball":"https://registry.npmjs.org/@alloyteam/eslint-config-react/-/eslint-config-react-1.0.0-beta.1.tgz","integrity":"sha512-rXGXCk0yt5R8LVIhoCJ5uaqVXvH5AXt0LOZOjR/5bBHLZBkGgeYjPAJ0w1bWTTF9fmw5cHVgxVuO3d9KY2yTxA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIARjpY5+gtyGyDB8Ye6telLb0AraH6zM4qPZGjCwluBEAiAY+9mtktg7m9a7ZaxiRHS4Fo6/u4YlhzXEJfYWcyGk4w=="}]},"maintainers":[{"email":"xcatliu@gmail.com","name":"xcatliu"},{"email":"alloyteam@qq.com","name":"alloyteam2008"},{"email":"lcxfs1991@gmail.com","name":"lcxfs1991"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-config-react-1.0.0-beta.1.tgz_1503477673141_0.3055568633135408"}}},"readme":"# AlloyTeam ESLint 规则 - React 版\r\n\r\n本规则在[标准规则](https://github.com/steamerjs/code-lint/tree/master/packages/standard)的基础上，增加了所有 [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) 规则，依据以下三条原则进行配置：\r\n\r\n1. 能够帮助发现代码错误的规则，全部开启\r\n2. 配置不依赖于某个具体项目，需要尽可能的合理\r\n3. 帮助保持代码风格统一，而不是限制开发体验\r\n\r\n本规则基于 eslint-plugin-react 7.1.0\r\n\r\n## 使用方法\r\n\r\n### 安装\r\n\r\n```bash\r\nnpm install --dev @alloyteam/eslint-config-react eslint-plugin-react babel-eslint\r\n```\r\n\r\n### 配置你的 .eslintrc.js\r\n\r\n在你的项目根目录下创建 `.eslintrc.js`，并将以下内容复制到文件中：\r\n\r\n```js\r\nmodule.exports = {\r\n    extends: [\r\n        '@alloyteam/eslint-config-standard',\r\n    ],\r\n    globals: {\r\n        // 这里填入你的项目需要的全局变量\r\n        // 这里值为 false 表示这个全局变量不允许被重新赋值，比如：\r\n        //\r\n        // React: false,\r\n        // jQuery: false,\r\n        // $: false\r\n    },\r\n    rules: {\r\n        // 这里填入你的项目需要的个性化配置，比如：\r\n        //\r\n        // // @fixable 一个缩进必须用两个空格替代\r\n        // 'indent': [\r\n        //     'error',\r\n        //     2,\r\n        //     {\r\n        //         SwitchCase: 1,\r\n        //         flatTernaryExpressions: true\r\n        //     }\r\n        // ],\r\n        // // @fixable jsx 的 children 缩进必须为两个空格\r\n        // 'react/jsx-indent': [\r\n        //     'error',\r\n        //     2\r\n        // ],\r\n        // // @fixable jsx 的 props 缩进必须为两个空格\r\n        // 'react/jsx-indent-props': [\r\n        //     'error',\r\n        //     2\r\n        // ]\r\n    }\r\n};\r\n```\r\n\r\n## Testing\r\n\r\n```bash\r\nnpm test\r\n```\r\n","maintainers":[{"email":"xcatliu@gmail.com","name":"xcatliu"},{"email":"alloyteam@qq.com","name":"alloyteam2008"},{"email":"lcxfs1991@gmail.com","name":"lcxfs1991"}],"time":{"modified":"2022-06-12T14:33:56.617Z","created":"2017-06-15T17:20:59.814Z","0.0.2":"2017-06-15T17:20:59.814Z","0.0.3":"2017-06-16T03:44:58.027Z","0.0.4":"2017-06-16T03:49:11.620Z","0.0.5":"2017-06-16T09:36:43.533Z","0.0.7":"2017-07-31T04:32:49.060Z","0.0.8":"2017-08-12T02:56:04.777Z","0.0.9":"2017-08-21T08:09:17.178Z","1.0.0-beta.1":"2017-08-23T08:41:13.718Z"},"homepage":"https://github.com/steamerjs/code-lint#readme","keywords":["eslint","react","eslintconfig","config","alloyteam","javascript","styleguide"],"repository":{"type":"git","url":"git+https://github.com/steamerjs/code-lint.git"},"author":{"name":"xcatliu","email":"xcatliu@gmail.com"},"bugs":{"url":"https://github.com/steamerjs/code-lint/issues"},"license":"MIT","readmeFilename":"README.md","contributors":[{"name":"heyli","email":"lcxfs1991@gmail.com"}]}