2023-10-27 09:23:50 +02:00
|
|
|
# An array of strings which contain Language Ids defined by VS Code
|
2024-06-24 18:55:59 +09:00
|
|
|
# You can check available language ids here: https://code.visualstudio.com/docs/languages/overview#_language-id
|
2023-10-27 09:23:50 +02:00
|
|
|
languageIds:
|
|
|
|
- javascript
|
|
|
|
- typescript
|
|
|
|
- javascriptreact
|
|
|
|
- typescriptreact
|
|
|
|
|
|
|
|
# An array of RegExes to find the key usage. **The key should be captured in the first match group**.
|
|
|
|
# You should unescape RegEx strings in order to fit in the YAML file
|
|
|
|
# To help with this, you can use https://www.freeformatter.com/json-escape.html
|
|
|
|
usageMatchRegex:
|
|
|
|
# The following example shows how to detect `t("your.i18n.keys")`
|
|
|
|
# the `{key}` will be placed by a proper keypath matching regex,
|
|
|
|
# you can ignore it and use your own matching rules as well
|
|
|
|
- "[^\\w\\d]t\\([\\s\\n]*'({key})'"
|
|
|
|
- 'keyName="({key})"'
|
|
|
|
|
|
|
|
# An array of strings containing refactor templates.
|
|
|
|
# The "$1" will be replaced by the keypath specified.
|
|
|
|
# Optional: uncomment the following two lines to use
|
|
|
|
|
2023-11-10 11:17:14 +01:00
|
|
|
refactorTemplates:
|
|
|
|
- t("$1")
|
2023-10-27 09:23:50 +02:00
|
|
|
|
|
|
|
# If set to true, only enables this custom framework (will disable all built-in frameworks)
|
|
|
|
monopoly: true
|