R
react-audit-grep-patterns
About react-audit-grep-patterns
React Audit Grep Patterns is a command library for auditing React 18.3.1 and React 19 migrations. It provides scan references for framework changes, tests, and dependency conflicts.
Key features
- 01React 16/17 to 18.3.1 scan patterns
- 02React 18 to 19 scan patterns
- 03Test-file-specific scans
- 04Dependency and peer conflict scans
Use cases
- 01Scan a codebase before upgrading to React 18.3.1
- 02Audit a React 18 project for React 19 migration
- 03Check tests and dependencies during an upgrade
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ github/ awesome-copilot --skill react-audit-grep-patternsAfter installing, type/react-audit-grep-patternsin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
references/test-scans.mddep-scans.mdreact19-scans.mdreact18-scans.mdDetails
From the project READMEReact Audit Grep Patterns
Complete scan command library for React 18.3.1 and React 19 migration audits.
Usage
Read the relevant section for your target:
references/react18-scans.md- all scans for React 16/17 → 18.3.1 auditreferences/react19-scans.md- all scans for React 18 → 19 auditreferences/test-scans.md- test file specific scans (used by both auditors)references/dep-scans.md- dependency and peer conflict scans
Base Patterns Used Across All Scans
# Standard flags used throughout:
# -r = recursive
# -n = show line numbers
# -l = show filenames only (for counting affected files)
# --include="*.js" --include="*.jsx" = JS/JSX files only
# | grep -v "\.test\.\|\.spec\.\|__tests__" = exclude test files
# | grep -v "node_modules" = safety (usually handled by not scanning node_modules)
# 2>/dev/null = suppress "no files found" errors
# Source files only (exclude tests):
SRC_FLAGS='--include="*.js" --include="*.jsx"'
EXCLUDE_TESTS='grep -v "\.test\.\|\.spec\.\|__tests__"'
# Test files only:
TEST_FLAGS='--include="*.test.js" --include="*.test.jsx" --include="*.spec.js" --include="*.spec.jsx"'
Comments
Markdown supported