eslint-plugin-react-perf weekly downloads statistics
By cvazac · npm · ESLint plugins
Performance-minded React linting rules for ESLint
eslint-plugin-react-perf has 240,657 recorded weekly downloads on npm, a decrease of 34.3% over the past 30 days, ranking #372 of 2,322 tracked listings.
About eslint-plugin-react-perf
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
Add plugins section and specify eslint-plugin-react-perf as a plugin.
{
"plugins": ["react-perf"]
}
List of supported rules
- react-perf/jsx-no-new-object-as-prop: Prevent
{...}as JSX prop value - react-perf/jsx-no-new-array-as-prop: Prevent
[...]as JSX prop value - react-perf/jsx-no-new-function-as-prop: Prevent
functionas JSX prop value - react-perf/jsx-no-jsx-as-prop: Prevent JSX as JSX prop value
Configuration
As of v3.3.0, each eslint-plugin-react-perf rule supports configuration to control whether native elements (lower case first letter React components) are ignored.
With this configuration, all native elements are ignored for this rule:
{
"react-perf/jsx-no-new-object-as-prop": [
"error",
{
"nativeAllowList": "all"
}
]
}
With this configuration, the "style" attribute is ignored for native elements for this rule:
{
"react-perf/jsx-no-new-object-as-prop": [
"error",
{
"nativeAllowList": ["style"]
}
]
}
Recommended
This plugin exports a recommended configuration that enforce React good practices.
Flat configuration
To enable this configuration add the following to your eslint.config.js:
import reactPerfPlugin from 'eslint-plugin-react-perf';
const config = [
reactPerfPlugin.configs.flat.recommended
];
export default config;
eslintrc configuration
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:
- react-perf/jsx-no-new-object-as-prop
- react-perf/jsx-no-new-array-as-prop
- react-perf/jsx-no-new-function-as-prop
- react-perf/jsx-no-jsx-as-prop
All
This plugin also exports an all configuration that includes every available rule.
Flat configuration
To enable this configuration add the following to your eslint.config.js:
import reactPerfPlugin from 'eslint-plugin-react-perf';
const config = [
reactPerfPlugin.configs.flat.all
];
export default config;
eslintrc configuration
{
"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.
Description from the npm listing.
- react
- eslint
- eslintplugin
- eslint-plugin
- perf
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (543)Similar npm ESLint plugins plugins
All 20 eslint-plugin-react-perf alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/eslint-plugin-react-perf. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.