@dbenfouzari/eslint-plugin-react-native

1.1.1 • Public • Published

@dbenfouzari/eslint-plugin-react-native

Installation

yarn add -D @dbenfouzari/eslint-plugin-react-native

or if you are using npm

npm i -D @dbenfouzari/eslint-plugin-react-native

Enable it by inserting in your project

{
  "plugins": ["@dbenfouzari/react-native"]
}

Available rules

@dbenfouzari/react-native/no-child-string

This rule will avoid you using text as children. Useful when you want to enforce i18n.

Example :

{
  "plugins": ["@dbenfouzari/react-native"],
  "rules": {
    "@dbenfouzari/react-native/no-child-string": ["error"]
  }
}

Package Sidebar

Install

npm i @dbenfouzari/eslint-plugin-react-native

Weekly Downloads

3

Version

1.1.1

License

MIT

Unpacked Size

8.64 kB

Total Files

3

Last publish

Collaborators

  • d.benfouzari