@jgoz/eslint-plugin-jsx-expressions

2.0.1 • Public • Published

eslint-plugin-jsx-expressions

Rules for safe logical expressions in JSX

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-jsx-expressions:

npm install eslint-plugin-jsx-expressions --save-dev

Usage

Add jsx-expressions to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": ["jsx-expressions"]
}

Then configure the rules you want to use under the rules section.

{
  "rules": {
    "jsx-expressions/strict-logical-expressions": "error"
  }
}

Supported Rules

Package Sidebar

Install

npm i @jgoz/eslint-plugin-jsx-expressions

Weekly Downloads

3,508

Version

2.0.1

License

ISC

Unpacked Size

16.2 kB

Total Files

13

Last publish

Collaborators

  • jgoz