Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 18, 2024 via pnpm

eslint-plugin-react 7.33.2

React specific linting rules for ESLint
Package summary
Share
0
issues
7
licenses
169
MIT
15
ISC
6
BSD-2-Clause
9
other licenses
Apache-2.0
5
BSD-3-Clause
2
Python-2.0
1
(MIT OR CC0-1.0)
1
Package created
16 Dec 2014
Version published
16 Aug 2023
Maintainers
2
Total deps
199
Direct deps
17
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
169 Packages, Including:
@eslint-community/eslint-utils@4.4.0
@eslint-community/regexpp@4.10.0
@eslint/eslintrc@2.1.4
@eslint/js@8.57.0
@nodelib/fs.scandir@2.1.5
@nodelib/fs.stat@2.0.5
@nodelib/fs.walk@1.2.8
acorn-jsx@5.3.2
acorn@8.11.3
ajv@6.12.6
ansi-regex@5.0.1
ansi-styles@4.3.0
array-buffer-byte-length@1.0.1
array-includes@3.1.8
array.prototype.flat@1.3.2
array.prototype.flatmap@1.3.2
array.prototype.tosorted@1.1.3
arraybuffer.prototype.slice@1.0.3
available-typed-arrays@1.0.7
balanced-match@1.0.2
brace-expansion@1.1.11
call-bind@1.0.7
callsites@3.1.0
chalk@4.1.2
color-convert@2.0.1
color-name@1.1.4
concat-map@0.0.1
cross-spawn@7.0.3
data-view-buffer@1.0.1
data-view-byte-length@1.0.1
data-view-byte-offset@1.0.0
debug@4.3.4
deep-is@0.1.4
define-data-property@1.1.4
define-properties@1.2.1
es-abstract@1.23.3
es-define-property@1.0.0
es-errors@1.3.0
es-iterator-helpers@1.0.19
es-object-atoms@1.0.0
es-set-tostringtag@2.0.3
es-shim-unscopables@1.0.2
es-to-primitive@1.2.1
escape-string-regexp@4.0.0
eslint-plugin-react@7.33.2
eslint@8.57.0
fast-deep-equal@3.1.3
fast-json-stable-stringify@2.1.0
fast-levenshtein@2.0.6
file-entry-cache@6.0.1

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
15 Packages, Including:
@ungap/structured-clone@1.2.0
fastq@1.17.1
flatted@3.3.1
fs.realpath@1.0.0
glob-parent@6.0.2
glob@7.2.3
inflight@1.0.6
inherits@2.0.4
isexe@2.0.0
minimatch@3.1.2
once@1.4.0
rimraf@3.0.2
semver@6.3.1
which@2.0.2
wrappy@1.0.2

BSD 2-Clause "Simplified" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
hold-liable
Must
include-copyright
include-license
6 Packages, Including:
eslint-scope@7.2.2
espree@9.6.1
esrecurse@4.3.0
estraverse@5.3.0
esutils@2.0.3
uri-js@4.4.1

Apache License 2.0

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
use-patent-claims
place-warranty
Cannot
hold-liable
use-trademark
Must
include-copyright
include-license
state-changes
include-notice
5 Packages, Including:
@humanwhocodes/config-array@0.11.14
@humanwhocodes/module-importer@1.0.1
doctrine@2.1.0
doctrine@3.0.0
eslint-visitor-keys@3.4.3

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
2 Packages, Including:
@humanwhocodes/object-schema@2.0.3
esquery@1.5.0

Python License 2.0

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
state-changes
1 Packages, Including:
argparse@2.0.1

(MIT OR CC0-1.0)

Public Domain
1 Packages, Including:
type-fest@0.20.2
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

17
All Dependencies CSV
β“˜ This is a list of eslint-plugin-react 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
array-includes3.1.825.71 kBMIT
prod
array.prototype.flatmap1.3.26.72 kBMIT
prod
array.prototype.tosorted1.1.36.75 kBMIT
prod
doctrine2.1.021.74 kBApache-2.0
prod
es-iterator-helpers1.0.19151.97 kBMIT
prod
eslint8.57.02.9 MBMIT
prod peer
estraverse5.3.07.86 kBBSD-2-Clause
prod
jsx-ast-utils3.3.533.4 kBMIT
prod
minimatch3.1.211.66 kBISC
prod
object.entries1.1.831.8 kBMIT
prod
object.fromentries2.0.815.94 kBMIT
prod
object.hasown1.1.416.04 kBMIT
prod
object.values1.2.030.78 kBMIT
prod
prop-types15.8.122.12 kBMIT
prod
resolve2.0.0-next.524.78 kBMIT
prod
semver6.3.118.65 kBISC
prod
string.prototype.matchall4.0.1137.61 kBMIT
prod

Visualizations

Frequently Asked Questions

What does eslint-plugin-react do?

The eslint-plugin-react is a highly beneficial tool for developers. It provides specific linting rules for ESLint pertaining to React, improving the efficiency and quality of their code. Essentially, linting rules act as a series of checks that help to spot programmatic and stylistic errors in your code. If any deviations from predefined coding standards are made, your ESLint tool will flag them. This allows you to avoid potential bugs before they become a problem.

How do you use eslint-plugin-react?

To use the eslint-plugin-react, you first need to install it using Node package manager (npm). It can be installed locally, or globally, although the recommendation lies with local installation. You can use the following command to install it:

npm install eslint eslint-plugin-react --save-dev

Your ESLint configuration file helps to specify the rules that you'd like to enforce. The most straightforward way of using eslint-plugin-react is to extend the plugin's recommended configuration. This configures reasonable defaults for you. Add the following to your .eslintrc file:

  "extends": [
    "eslint:recommended",
    "plugin:react/recommended"
  ]

If you're not using a preset, you'll need to declare each rule and additional configuration individually:

{
  "plugins": [
    "react"
  ]
}

You also need to enable JSX support:

{
  "parserOptions": {
    "ecmaFeatures": {
      "jsx": true
    }
  }
}

Then, enable the rules you want to use. For example:

  "rules": {
    "react/jsx-uses-react": "error",
    "react/jsx-uses-vars": "error",
  }

Some advanced configurations include setting shared settings across all plugin rules, enabling JSX in parser options, using the new JSX transform from React 17, and others as listed comprehensively within the package's readme documentation.

Where are the eslint-plugin-react docs?

The official documentation and usage examples for the eslint-plugin-react package can be found on the project's GitHub page: https://github.com/jsx-eslint/eslint-plugin-react. The documentation includes detailed information about the installation process, configuration options, shareable configurations, and a list of supported rules.