Skip to content
This repository has been archived by the owner on Dec 8, 2023. It is now read-only.

Commit

Permalink
fix: add contains within sequential (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilevyor authored Nov 15, 2023
1 parent 423e769 commit 6a94ba0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .grit/patterns/jest_to_vitest.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ pattern main_jest_to_vitest_migration() {
sequential {
maybe main_jest_to_vitest_migration(),
maybe adjust_imports_vitest(),
maybe contains adjust_imports_vitest(),
}
```

Expand Down
6 changes: 3 additions & 3 deletions .grit/patterns/moment_to_datefns.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ engine marzano(0.1)
language js
sequential {
or {
contains or {
// Re-write all `const` declarations that initialize a moment object to `let`.
rewrite_const_to_let(),
// Rewrite all moment-js expressions to equivalent date-fns expressions
moment_exp_to_datefns_exp(),
},
add_helper_functions(),
add_datefns_imports()
contains add_helper_functions(),
contains add_datefns_imports()
}
```

Expand Down
4 changes: 2 additions & 2 deletions .grit/patterns/mux_v8.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ pattern replace_verify_headers() {
}
sequential {
maybe change_constructors(),
maybe replace_verify_headers(),
maybe contains change_constructors(),
maybe contains replace_verify_headers(),
}
```
Expand Down

0 comments on commit 6a94ba0

Please sign in to comment.