{"_id":"@afuteam-nx/plugin-exec-eslint","_rev":"6-78796361723f521215a0e7c3050b550a","name":"@afuteam-nx/plugin-exec-eslint","dist-tags":{"next":"0.0.1","latest":"0.0.7"},"versions":{"0.0.1":{"name":"@afuteam-nx/plugin-exec-eslint","version":"0.0.1","dependencies":{"@nx/devkit":"18.0.5","tslib":"^2.3.0"},"type":"commonjs","main":"./src/index.js","typings":"./src/index.d.ts","executors":"./executors.json","gitHead":"fe2a66d7aad1c05f74f76e31734998ced8d5faa3","description":"This library was generated with [Nx](https://nx.dev).","_id":"@afuteam-nx/plugin-exec-eslint@0.0.1","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-7FFbexgecNlbdcmMJ6YOc5K1xASCxND25+i8hP04FdAKyIquAZa1zD0X1IpVykJpIAPFCxHR4rqVKyXcXMnVkg==","shasum":"e2950c1d02af0b31bf6150cbb0a7220b0a7019e0","tarball":"https://registry.npmjs.org/@afuteam-nx/plugin-exec-eslint/-/plugin-exec-eslint-0.0.1.tgz","fileCount":18,"unpackedSize":20480,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEZPUU7cFnuGMqbNa0mTjU+BeRaELphwchltWyv0h+lWAiEA/jZj4vZvw4YAMJlC1u7K9a09qLE1XqEZt9H3q8OtuCE="}]},"_npmUser":{"name":"eyea","email":"deyesea@gmail.com"},"directories":{},"maintainers":[{"name":"eyea","email":"deyesea@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-exec-eslint_0.0.1_1709279551409_0.3206683207311738"},"_hasShrinkwrap":false},"0.0.2":{"name":"@afuteam-nx/plugin-exec-eslint","version":"0.0.2","dependencies":{"@nx/devkit":"18.0.5","tslib":"^2.3.0"},"type":"commonjs","main":"./src/index.js","typings":"./src/index.d.ts","executors":"./executors.json","gitHead":"78b3c144116ac7726692ee8ddce766319860f577","description":"对给定代码仓库和 `eslint` 类型 `AFULintType`，对项目执行代码质量检查。","_id":"@afuteam-nx/plugin-exec-eslint@0.0.2","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-8TlIetX/cTJZrykyXLiAQ+aufWw68F+hU8Qq40kpJ/LhU/kDGbHyiV4XHTGf1DxmHRcdsO3TBHsyky95FrRSvw==","shasum":"14df4591fdb14e74490f47fd4f6f878798a48689","tarball":"https://registry.npmjs.org/@afuteam-nx/plugin-exec-eslint/-/plugin-exec-eslint-0.0.2.tgz","fileCount":12,"unpackedSize":21767,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC1L5CLf8BP6wi9Up4Km0YiefJWsMURKfV0aFTf1tl9kQIgTgwqgpnuYrBVx3HIWC4HoGEhoo7vY57QfUdy4TVFcqI="}]},"_npmUser":{"name":"eyea","email":"deyesea@gmail.com"},"directories":{},"maintainers":[{"name":"eyea","email":"deyesea@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-exec-eslint_0.0.2_1709535884248_0.6356898432425906"},"_hasShrinkwrap":false},"0.0.3":{"name":"@afuteam-nx/plugin-exec-eslint","version":"0.0.3","dependencies":{"@nx/devkit":"18.0.5","tslib":"^2.3.0"},"type":"commonjs","main":"./src/index.js","typings":"./src/index.d.ts","executors":"./executors.json","gitHead":"78b3c144116ac7726692ee8ddce766319860f577","description":"对给定代码仓库和 `eslint` 类型 `AFULintType`，对项目执行代码质量检查。","_id":"@afuteam-nx/plugin-exec-eslint@0.0.3","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-2jd0ettK1lzxg2k4b3CQ8XG78Tojlo9a0O/MDY+oqSWPl7gxA5Oo1qPkPu6E/P4ZEmkqu6AG4EerdituJdC46A==","shasum":"0cce317fc9a3648b1ecb5ddb077f57aff7a5ce73","tarball":"https://registry.npmjs.org/@afuteam-nx/plugin-exec-eslint/-/plugin-exec-eslint-0.0.3.tgz","fileCount":12,"unpackedSize":21614,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD4Sj39LVvhC+Sn97tBIeT7EoKWQgMpe4DWi/m+vevHswIhAJSgCgbXGJVyRHfFFUuvTYX1j8Yj7LI7nDxGuk0aqx6W"}]},"_npmUser":{"name":"eyea","email":"deyesea@gmail.com"},"directories":{},"maintainers":[{"name":"eyea","email":"deyesea@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-exec-eslint_0.0.3_1709535980115_0.7531778110907512"},"_hasShrinkwrap":false},"0.0.4":{"name":"@afuteam-nx/plugin-exec-eslint","version":"0.0.4","dependencies":{"@nx/devkit":"18.0.5","tslib":"^2.3.0"},"keywords":["@afuteam-nx","nx","@afuteam-nx/plugin-add-eslint-type","nx-plugins","@afuteam/eslint-plugin-fe"],"type":"commonjs","main":"./src/index.js","typings":"./src/index.d.ts","executors":"./executors.json","_id":"@afuteam-nx/plugin-exec-eslint@0.0.4","gitHead":"3a55189d62d928dc5470ba46cb7fe11126623357","description":"对代码仓库执行代码质量检查，支持批量项目。 输出结果包含仓库的 `eslint错误数` `空行数` `代码行数` `注释行数`","_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-Uu+y1mUbmK2ebSmZ6S9XiFsY6TP5t8EJOKr8RiMKmR/1hecA2dLLC6nxfZ8nKYHYymUQP9BCdfbLqzfX0jMmRQ==","shasum":"1644817a8c9a508fd30c503b0facf025e22b78ba","tarball":"https://registry.npmjs.org/@afuteam-nx/plugin-exec-eslint/-/plugin-exec-eslint-0.0.4.tgz","fileCount":12,"unpackedSize":22695,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCDvUlrQcJ4ppbF1T/o4+aQpeEmKw59dZTjyHS3JUNg4AIhAIrMJ2VEMfgK7N+BNSyLT50FCbp/EBJ34nN51CLZOImI"}]},"_npmUser":{"name":"eyea","email":"deyesea@gmail.com"},"directories":{},"maintainers":[{"name":"eyea","email":"deyesea@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-exec-eslint_0.0.4_1709718663140_0.3564009228692442"},"_hasShrinkwrap":false},"0.0.5":{"name":"@afuteam-nx/plugin-exec-eslint","version":"0.0.5","dependencies":{"@nx/devkit":"18.0.5","tslib":"^2.3.0"},"keywords":["@afuteam-nx","nx","@afuteam-nx/plugin-add-eslint-type","nx-plugins","@afuteam/eslint-plugin-fe"],"type":"commonjs","main":"./src/index.js","typings":"./src/index.d.ts","executors":"./executors.json","_id":"@afuteam-nx/plugin-exec-eslint@0.0.5","gitHead":"1d697343aaa8e397313fb92f875378bc8d960f52","description":"对代码仓库执行代码质量检查，支持批量项目。 输出结果包含仓库的 `eslint错误数` `空行数` `代码行数` `注释行数` `复杂度统计(不包含switchcase类型)`","_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-/a05LhczduTkzz+dyKk8fEH9FLJjlXOT/kLY41KfYNvlVdj+i+o8N52RZhzjkmG6fTe96YioamAprdP5350qLw==","shasum":"7187444f876e211102f03eb54c86ccaf3909d794","tarball":"https://registry.npmjs.org/@afuteam-nx/plugin-exec-eslint/-/plugin-exec-eslint-0.0.5.tgz","fileCount":12,"unpackedSize":24427,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDaauuBV7rL4cxd8GKsxBHKetXsQXykqIJweIDzWuJJswIhAPohw6LPw+aKHwK6BtVdSQGQMuHZaO7ICOn/QkcKj47Y"}]},"_npmUser":{"name":"eyea","email":"deyesea@gmail.com"},"directories":{},"maintainers":[{"name":"eyea","email":"deyesea@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-exec-eslint_0.0.5_1710741636116_0.9153622953951"},"_hasShrinkwrap":false},"0.0.6":{"name":"@afuteam-nx/plugin-exec-eslint","version":"0.0.6","dependencies":{"@nx/devkit":"18.2.3","tslib":"^2.3.0"},"keywords":["@afuteam-nx","nx","@afuteam-nx/plugin-add-eslint-type","nx-plugins","@afuteam/eslint-plugin-fe"],"type":"commonjs","main":"./src/index.js","typings":"./src/index.d.ts","executors":"./executors.json","_id":"@afuteam-nx/plugin-exec-eslint@0.0.6","gitHead":"c09bd6fefc7eaba2cbaea776898eee707928af76","description":"对代码仓库执行代码质量检查，支持批量项目。 输出结果包含仓库的 `eslint错误数` `空行数` `代码行数` `注释行数` `复杂度统计(不包含switchcase类型)`","_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-ykDU7/USuShK/E2rsvJlAhFEIqrJfbDwxImdWnlSrdQJMxpyYZhyZGmhuNgMaM78UARr3moQc6fBh0g+URtujw==","shasum":"f988f21803728c570983a53822dfe062f18aa412","tarball":"https://registry.npmjs.org/@afuteam-nx/plugin-exec-eslint/-/plugin-exec-eslint-0.0.6.tgz","fileCount":14,"unpackedSize":26443,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDJ8+EtEzeoV4I2XiCqTb1ANdM8mC0K3MNJYLK/7HnD9AiEArN8kOuKM/lW6dbSuXy1vXFvIF74j9iRq9b8Om6y1ve4="}]},"_npmUser":{"name":"eyea","email":"deyesea@gmail.com"},"directories":{},"maintainers":[{"name":"eyea","email":"deyesea@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-exec-eslint_0.0.6_1712579114823_0.31610913285040887"},"_hasShrinkwrap":false},"0.0.7":{"name":"@afuteam-nx/plugin-exec-eslint","version":"0.0.7","dependencies":{"@nx/devkit":"18.2.3","tslib":"^2.3.0"},"keywords":["@afuteam-nx","nx","@afuteam-nx/plugin-add-eslint-type","nx-plugins","@afuteam/eslint-plugin-fe"],"type":"commonjs","main":"./src/index.js","typings":"./src/index.d.ts","executors":"./executors.json","_id":"@afuteam-nx/plugin-exec-eslint@0.0.7","gitHead":"9cf83879f8b407986487dafcb556ef3b06d08f54","description":"对代码仓库执行代码质量检查，支持批量项目。 输出结果包含仓库的 `eslint错误数` `空行数` `代码行数` `注释行数` `复杂度统计(不包含switchcase类型)`","_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-2uB/xB/bsR7twtVEVyW54d9fWXwEkkT65o6cT0G+hmBjFYXYcn2yqBGLP+p41wNhlvDNuGn260XtiUOWBr7FDg==","shasum":"68f63698b136358c7dc67c6afa60a7abb9aa9af3","tarball":"https://registry.npmjs.org/@afuteam-nx/plugin-exec-eslint/-/plugin-exec-eslint-0.0.7.tgz","fileCount":14,"unpackedSize":27232,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDnKM06gvXp7yNMSgj5WrgBQMcFDceRyPZFAYKb193jmAIhAOMagjzvEWx8ANoD/Q0QOioiLYyAYVl6G+9Wqs8gG9mI"}]},"_npmUser":{"name":"eyea","email":"deyesea@gmail.com"},"directories":{},"maintainers":[{"name":"eyea","email":"deyesea@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-exec-eslint_0.0.7_1716285835726_0.8863549287479473"},"_hasShrinkwrap":false}},"time":{"created":"2024-03-01T07:52:31.289Z","0.0.1":"2024-03-01T07:52:31.566Z","modified":"2024-05-21T10:03:56.073Z","0.0.2":"2024-03-04T07:04:44.410Z","0.0.3":"2024-03-04T07:06:20.331Z","0.0.4":"2024-03-06T09:51:03.288Z","0.0.5":"2024-03-18T06:00:36.258Z","0.0.6":"2024-04-08T12:25:14.990Z","0.0.7":"2024-05-21T10:03:55.864Z"},"maintainers":[{"name":"eyea","email":"deyesea@gmail.com"}],"description":"对代码仓库执行代码质量检查，支持批量项目。 输出结果包含仓库的 `eslint错误数` `空行数` `代码行数` `注释行数` `复杂度统计(不包含switchcase类型)`","readme":"# plugin-exec-eslint\n\n对代码仓库执行代码质量检查，支持批量项目。\n输出结果包含仓库的 `eslint错误数` `空行数` `代码行数` `注释行数` `复杂度统计(不包含switchcase类型)`\n\n\n## 环境\n本插件基于 `nx` 开发，请在对应初始化好的 `your-app` 中使用\n\n本插件的输入文件建议使用 [@afuteam-nx/plugin-add-eslint-type](https://www.npmjs.com/package/@afuteam-nx/plugin-add-eslint-type)生成的文件\n\n本插件受益于 [@afuteam/eslint-plugin-fe](https://www.npmjs.com/package/@afuteam/eslint-plugin-fe) 提供代码 `eslint` 规则\n\n关于复杂度，使用了自定义的规则，过滤了 `switch case` 类型的统计\n\n## 安装\n\n```bash\npnpm i @afuteam-nx/plugin-exec-eslint -D\n```\n\n## 配置\n```bash\n# 在 apps/your-app/project.json 中配置\n\"targets\": {\n  \"fetch-repos\": {\n    \"executor\": \"@afuteam-nx/plugin-exec-eslint:run\",\n    \"options\": {\n      \"localFileReposWithAFULintTypePath\": \"项目清单需要有 AFULintType 字段, allProjectsWithLinType.json\",\n      \"localAllReposCodePath\": \"本地的要执行 eslint 源代码路径\",\n      \"resultPath\": \"结果输出路径 文件名 allProjectsLintResult.json\"\n    }\n  }\n}\n\n```\n\n## 使用\n```bash\nnx run your-app:exec-eslint\n```\n\n## 文件数据结构\n`allProjectsWithLinType.json`\n```json\n[\n  {\n    \"id\": 28612,\n    \"created_at\": \"2023-11-21T15:23:21.637+08:00\",\n    \"last_activity_at\": \"2024-03-04T20:41:10.727+08:00\",\n    \"name\": \"sky\",\n    \"AFULintType\": {\n      \"root\": \"react-ts\"\n    },\n    \"web_url\": \"https://gitlab.com/afuteam/sky\"\n  }\n]\n```\n\n`allProjectsLintResult.json`\n```json\n[\n  {\n    \"errors\": 0,\n    \"warnings\": 0,\n    \"total\": 0,\n    \"blank_lines\": 667,\n    \"comment_lines\": 399,\n    \"code_lines\": 14146,\n    \"complexity_data_ength\": 0,\n    \"repo_created_at\": \"2023-11-07T15:07:46.337+08:00\",\n    \"repo_last_activity_at\": \"2024-05-20T15:43:34.501+08:00\",\n    \"repo_id\": 28516,\n    \"repo_name\": \"gogogo\"\n  }\n]\n```\n\n\n\n","readmeFilename":"README.md","keywords":["@afuteam-nx","nx","@afuteam-nx/plugin-add-eslint-type","nx-plugins","@afuteam/eslint-plugin-fe"]}