@rnw-community/eslint-plugin
TypeScript icon, indicating that this package has built-in type declarations

0.67.0 • Public • Published

RNW ESLint plugin

Elevate your React/ReactNative projects with our ESLint plugin, meticulously crafted to ensure adherence to the best practices in the industry.

npm version npm downloads

Notable Rule: no-complex-jsx-logic

Our plugin features the no-complex-jsx-logic rule, specifically designed to streamline JSX in your React components. It ensures simplicity in JSX by restricting complex expressions, thus enhancing readability and maintainability. For a comprehensive guide on this rule, see our detailed documentation.

Installation

Incorporating our plugin into your project is straightforward. Follow these simple steps:

  1. Install via NPM: Run the following command in your project directory:
npm install @rnw-community/eslint-plugin --save-dev
  1. Configure ESLint: Add the plugin to your ESLint configuration. Here's an example .eslintrc configuration:
{
  "plugins": [
    "@rnw-community"
  ],
  "rules": {
    "@rnw-community/no-complex-jsx-logic": "error"
  }
}

License

This library is licensed under The MIT License.

Package Sidebar

Install

npm i @rnw-community/eslint-plugin

Weekly Downloads

78

Version

0.67.0

License

MIT

Unpacked Size

20.3 kB

Total Files

27

Last publish

Collaborators

  • vitalyiegorov