Browse Source
Add react-doctor CI workflow to automatically scan PRs for React anti-patterns and code health issues. Configure advisory mode (failOn: none) with project-specific ignore rules for mock, auto-generated, and non-component directories. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>pull/11777/head
3 changed files with 38 additions and 0 deletions
@ -0,0 +1,18 @@ |
|||
name: 🏥 React Doctor |
|||
|
|||
on: push |
|||
|
|||
permissions: |
|||
contents: read |
|||
pull-requests: write |
|||
|
|||
jobs: |
|||
react-doctor: |
|||
runs-on: ubuntu-latest |
|||
steps: |
|||
- uses: actions/checkout@v6 |
|||
- uses: millionco/react-doctor@main |
|||
continue-on-error: true |
|||
with: |
|||
diff: true |
|||
github-token: ${{ secrets.GITHUB_TOKEN }} |
|||
@ -0,0 +1,18 @@ |
|||
{ |
|||
"ignore": { |
|||
"files": [ |
|||
"mock/**", |
|||
"src/services/**", |
|||
"scripts/**", |
|||
"cloudflare-worker/**", |
|||
"src/.umi/**", |
|||
"src/.umi-production/**", |
|||
"src/.umi-test/**", |
|||
"**/*.md", |
|||
"**/*.less", |
|||
"**/*.css" |
|||
] |
|||
}, |
|||
"failOn": "none", |
|||
"adoptExistingLintConfig": true |
|||
} |
|||
Loading…
Reference in new issue