Namibian Pyjama Merchant
Publish your own packages to the world's most popular software ecosystem with npm Pro.Get started »

eslint-plugin-react-perf

3.2.3 • Public • Published

eslint-plugin-react-perf

Performance-minded React linting rules for ESLint (motivated by esamatti's post "React.js pure render performance anti-pattern").

Installation

$ npm i eslint-plugin-react-perf

Configuration

Add plugins section and specify eslint-plugin-react-perf as a plugin.

{
  "plugins": [
    "react-perf"
  ]
}

List of supported rules

Recommended

This plugin exports a recommended configuration that enforce React good practices.

To enable this configuration use the extends property in your .eslintrc config file:

{
  "extends": ["plugin:react-perf/recommended"]
}

See ESLint documentation for more information about extending configuration files.

The rules enabled in this configuration are:

All

This plugin also exports an all configuration that includes every available rule.

{
  "plugins": [
    "react-perf"
  ],
  "extends": ["plugin:react-perf/all"]
}

Test anti-patterns in runtime

Try out cvazac/test-ref-pattern.

License

eslint-plugin-react-perf is licensed under the MIT License.

Install

npm i eslint-plugin-react-perf

DownloadsWeekly Downloads

7,328

Version

3.2.3

License

MIT

Unpacked Size

20.6 kB

Total Files

22

Last publish

Collaborators

  • avatar
  • avatar