0.67.0 • Published 3 months ago

@rnw-community/eslint-plugin v0.67.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

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.