The target language is the programming language of the code you want to migrate. Currently, Grit supports the following target languages:
- Terraform HCL
If you would like to see support for a language that is not listed here, please let us know.
Grit supports multiple target languages. To select a language, start a pattern file with a language declaration.
language js `myPattern`
In some rare cases, you may need to specify an alternative parser for a language. Alternative parsers can be specified in parentheses with the language declaration.
The above example specifies the
The following are a few examples of available language versions:
language js(typescript,jsx)-- TypeScript with JSX enabled
language js(typescript)-- TypeScript without JSX