@dbenfouzari/eslint-plugin-i18n
Installation
yarn add -D @dbenfouzari/eslint-plugin-i18n
or if you are using npm
npm i -D @dbenfouzari/eslint-plugin-i18n
Enable it by inserting in your project
{
"plugins": ["@dbenfouzari/i18n"]
}
Available rules
@dbenfouzari/i18n/no-child-string
This rule will avoid you using text as children.
Useful when you want to enforce i18n
.
Example :
{
"plugins": ["@dbenfouzari/i18n"],
"rules": {
"@dbenfouzari/i18n/no-child-string": ["error"]
}
}