0.0.5 • Published 2 months ago

@afuteam-nx/plugin-add-eslint-type v0.0.5

Weekly downloads
-
License
-
Repository
-
Last release
2 months ago

plugin-add-eslint-type

给定代码仓库源码,智能识别代码仓库技术栈,输出仓库应当使用哪种 AFUEslintType 类型,进行代码质量检测。

环境

本插件基于 nx 开发,请在对应初始化好的 your-app 中使用;

本插件受益于 @afuteam/eslint-plugin-fe 提供代码 AFUEslintType 分析能力

安装

pnpm i @afuteam-nx/plugin-add-eslint-type -D

配置

# 在 apps/your-app/project.json 中配置
"targets": {
  "fetch-repos": {
    "executor": "@afuteam-nx/plugin-add-eslint-type:run",
    "options": {
      "localFileAllReposInfoPath": "从代码仓库拉下来的项目信息清单路径 allProjects.json",
      "blackFileList": "过滤文件目录名称",
      "localFilesAllReposCodePath": "本地代码仓库源码路径",
      "resultPath": "结果输出路径 文件名 allProjectsWithLinType.json"
    }
  }
}

使用

nx run your-app:add-eslint-type

文件数据结构

allProjects.json

[
  {
    "id": "",
    "created_at": "",
    "last_activity_at": "",
    "name": "",
    "web_url": ""
  }
]

allProjectsWithLinType.json

[
  {
    "id": 28612,
    "created_at": "2023-11-21T15:23:21.637+08:00",
    "last_activity_at": "2024-03-04T20:41:10.727+08:00",
    "name": "sky",
    "AFULintType": {
      "root": "react-ts"
    },
    "web_url": "https://gitlab.com/afuteam/sky"
  }
]
0.0.5

2 months ago

0.0.4

3 months ago

0.0.3

4 months ago

0.0.2

4 months ago

0.0.1

4 months ago