The new web-features-codemods repo:
https://github.com/e18e/web-features-codemods/tree/main
is basically like module-replacements but for syntax-to-syntax codemods in most cases.
for example, array[array.length - 1] becomes array.at(-1)
each one has a {test, apply} signature. so the CLI can use test to report that there are fixes available, and apply to apply them to a code string
The new web-features-codemods repo:
https://github.com/e18e/web-features-codemods/tree/main
is basically like module-replacements but for syntax-to-syntax codemods in most cases.
for example,
array[array.length - 1]becomesarray.at(-1)each one has a
{test, apply}signature. so the CLI can usetestto report that there are fixes available, andapplyto apply them to a code string