@dbenfouzari/eslint-plugin-i18n

5.0.1 • Public • Published

@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"]
  }
}

Package Sidebar

Install

npm i @dbenfouzari/eslint-plugin-i18n

Weekly Downloads

0

Version

5.0.1

License

MIT

Unpacked Size

36.5 kB

Total Files

4

Last publish

Collaborators

  • d.benfouzari