React Audit Grep Patterns

React Audit Grep Patterns

Supplies a library of verified grep scan commands for auditing a React codebase before upgrading to React 18.3.1 or 19, covering deprecated APIs, lifecycles, tests and dependencies.

Skill files5 files

references/

SKILL.md37 lines
1
---
2
name: react-audit-grep-patterns
3
description: 'Provides the complete, verified grep scan command library for auditing React codebases before a React 18.3.1 or React 19 upgrade. Use this skill whenever running a migration audit - for both the react18-auditor and react19-auditor agents. Contains every grep pattern needed to find deprecated APIs, removed APIs, unsafe lifecycle methods, batching vulnerabilities, test file issues, dependency conflicts, and React 19 specific removals. Always use this skill when writing audit scan commands - do not rely on memory for grep syntax, especially for the multi-line async setState patterns which require context flags.'
4
---
5
6
# React Audit Grep Patterns
7
8
Complete scan command library for React 18.3.1 and React 19 migration audits.
9
10
## Usage
11
12
Read the relevant section for your target:
13
- **`references/react18-scans.md`** - all scans for React 16/17 → 18.3.1 audit
14
- **`references/react19-scans.md`** - all scans for React 18 → 19 audit
15
- **`references/test-scans.md`** - test file specific scans (used by both auditors)
16
- **`references/dep-scans.md`** - dependency and peer conflict scans
17
18
## Base Patterns Used Across All Scans
19
20
```bash
21
# Standard flags used throughout:
22
# -r = recursive
23
# -n = show line numbers
24
# -l = show filenames only (for counting affected files)
25
# --include="*.js" --include="*.jsx" = JS/JSX files only
26
# | grep -v "\.test\.\|\.spec\.\|__tests__" = exclude test files
27
# | grep -v "node_modules" = safety (usually handled by not scanning node_modules)
28
# 2>/dev/null = suppress "no files found" errors
29
30
# Source files only (exclude tests):
31
SRC_FLAGS='--include="*.js" --include="*.jsx"'
32
EXCLUDE_TESTS='grep -v "\.test\.\|\.spec\.\|__tests__"'
33
34
# Test files only:
35
TEST_FLAGS='--include="*.test.js" --include="*.test.jsx" --include="*.spec.js" --include="*.spec.jsx"'
36
```
37

© GitHub, Inc. · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 14,621 prompts

More by @OpenSourceBuffGuy

See all
Sea turtle carrying floating film studio island prompt image

Sea turtle carrying floating film studio island

Draws a giant sea turtle carrying a floating island film studio through a starry sky, where fairies polish rough film strips into golden film.

image-prompt, nano-banana, 3d-render, cartoon, fantasy-world, creatures, animals, whimsical, dreamy, cinematic, dramatic-lighting, vibrant-colors, bokeh, miniature, widescreen, night-scene, illustration, concept-art, surreal, storytelling, clay-3d

Desert buggy escapes drones past industrial outpost prompt image

Desert buggy escapes drones past industrial outpost

Builds a 15-second desert chase video where a racer in an armored buggy escapes drones past an industrial outpost, using five reference images with set jobs.

video-prompt, hailuo, action, multi-shot, timed-beats, camera-movement, reference-image, character-consistency, negative-prompt, cinematic, sci-fi, cars, landscape, aerial-view, tracking-shot, photorealistic, sound-effects, structured-output, long-form, widescreen

1 view
Cozy Pixel Art Farm Island Village prompt image

Cozy Pixel Art Farm Island Village

Draws a cozy 16-bit pixel-art farming village across six small islands joined by bridges, with exact counts for buildings, animals and crops.

image-prompt, gpt-image, pixel-art, isometric, game-assets, concept-art, maps, worldbuilding, cozy, vibrant-colors, ocean, landscape, wide-shot, widescreen, game-development, video-games, structured-output, whimsical, summer, high-angle, aerial-view, animals, negative-prompt, cityscape

1 view

Reviews

Loading reviews…

Discussion

Loading comments…