Registry / testing / eslint-plugin-react-camel-case

eslint-plugin-react-camel-case

JSON →
library1.1.2jsnpmunverified

ESLint plugin (v1.1.2) that enforces camelCased React props, converting dashed props (e.g., margin-left) to camelCase (marginLeft). Designed for JSX in React projects. Provides a single rule 'react-camel-case/prop-types'. Works with ESLint >=3.0. Relies on eslint-plugin-react for AST parsing. Lightweight but limited to runtime detection only—no automatic fix support. Maintained sporadically; last release in 2018.

npm install eslint-plugin-react-camel-case
INSTALL
IMPORT
SIG · ESLINT-PLUGIN-REAC
E
eslint-plugin-react-camel-case
testingjavascriptv1.1.2
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

plugin
import plugin from 'eslint-plugin-react-camel-case'
const plugin = require('eslint-plugin-react-camel-case')
Default import returns the plugin object with rules. CJS require also works but ESM preferred.
rules
import { rules } from 'eslint-plugin-react-camel-case'
import { rule } from 'eslint-plugin-react-camel-case'
Named export 'rules' is an object containing the rule definitions.

Configures ESLint to enforce camelCase props for all React JSX elements using the react-camel-case/prop-types rule.

// .eslintrc.js module.exports = { plugins: ['react', 'react-camel-case'], rules: { 'react-camel-case/prop-types': 'error', }, };
Debug
Known issues
deprecatedOnly one rule (prop-types) is provided; no custom configuration options.
fix
Consider using 'react/jsx-no-literals' or custom linting if more control is needed.
affects: <=1.1.2
gotchaRule only checks JSX props, not object spreads or dynamic prop names.
fix
Use 'eslint-plugin-react' 'no-unknown-property' for additional checks.
affects: >=0.0.0
gotchaNo autofix available; must manually correct dashed props.
fix
Consider using 'eslint-plugin-transform-class-properties' or codemods.
affects: >=0.0.0
Errors
Common errors & fixes
Definition for rule 'react-camel-case/prop-types' was not found
Plugin not loaded in ESLint config or missing from node_modules.
fix
Run 'npm install eslint-plugin-react-camel-case eslint-plugin-react --save-dev' and add 'plugins: ['react-camel-case']' to config.
ESLint couldn't find the plugin "eslint-plugin-react-camel-case".
Package not installed or ESLint version incompatible.
fix
Install the plugin: 'npm install eslint-plugin-react-camel-case@latest' and ensure ESLint version >=3.0.
Cannot find module 'eslint-plugin-react'
Missing required peer dependency.
fix
Install 'eslint-plugin-react': 'npm install eslint-plugin-react --save-dev'.
Upgrade
Version history
1.1.2latest on npm
Audit
Dependencies
eslintrequiredpeer dependency for plugin registration
eslint-plugin-reactrequiredrequired for JSX parsing and prop detection
Agent activity
2 hits · last 30 days
node
2
Resources
eslint-plugin-react-camel-case — npm install eslint-plugin-react-camel-case · libregistry