Skip to content

dbenfouzari/eslint-plugin-react-native

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •