Skip to main content

eslint-plugin

@rnx-kit/eslint-plugin is a set of rules that can be extended in your own shareable ESLint config.

For more details on shareable configs, see https://eslint.org/docs/developer-guide/shareable-configs.

Install

yarn add @rnx-kit/eslint-plugin --dev

or if you're using npm:

npm add --save-dev @rnx-kit/eslint-plugin

This ESLint plugin exports @rnx-kit/recommended configuration. To enable it, add it to the extends section of your ESLint config file:

{
"extends": ["plugin:@rnx-kit/recommended"]
}

@rnx-kit/recommended currently extends:

Supported Rules

  • ✓: Enabled with @rnx-kit/recommended
  • 🔧: Fixable with --fix
🔧RuleDescription
🔧@rnx-kit/no-export-alldisallow export *