Registry / devops / eslint-config-code-style-lint-react

eslint-config-code-style-lint-react

JSON →
library3.1.3jsnpmunverified

A shareable ESLint configuration for React JavaScript projects, providing a consistent code style lint setup. Current stable version is 3.1.3. It is maintained with periodic updates. Released via npm, this package simplifies ESLint configuration for React developers by bundling common rules. It differentiates by focusing specifically on React and JavaScript, requiring peer dependencies of ESLint and prettier. The package is lightweight and directly extendable.

npm install eslint-config-code-style-lint-react
INSTALL
IMPORT
SIG · ESLINT-CONFIG-CODE
E
eslint-config-code-style-lint-react
devopsjavascriptv3.1.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

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

config
extends: ['code-style-lint-react'] in .eslintrc
import or require the package directly
Configuration is applied via ESLint's extends mechanism, not direct import.
main
import eslintConfig from 'eslint-config-code-style-lint-react'; // in eslint.config.js (flat config)
module.exports = require('eslint-config-code-style-lint-react');
Version 3.1.3 uses legacy eslintrc format. For flat config (ESLint >=9), import as default.
rules
// can override rules via overrides in eslintrc
import rules from 'eslint-config-code-style-lint-react/rules'
No separate rules export; all rules are bundled in the config.

Shows how to extend the shared config in a .eslintrc file.

// .eslintrc.json { "extends": ["code-style-lint-react"], "rules": { // your overrides } }
Debug
Known issues
gotchaRequires eslint as a peer dependency. Must install eslint and prettier separately.
fix
Run: npm install eslint prettier --save-dev
affects: >=1.0.0
deprecatedLegacy eslintrc format is used. May not work with flat config (ESLint >=9) without migration.
fix
Use eslint.config.js flat config and import the config as default export.
affects: >=3.0.0
gotchaConfig is designed for React JS projects only, not TypeScript or Vue.
fix
Use eslint-config-code-style-lint-ts for TypeScript React.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'eslint-config-code-style-lint-react'
Package not installed or missing from node_modules.
fix
Run: npm install eslint-config-code-style-lint-react --save-dev
Error: Failed to load plugin 'react' declared in 'code-style-lint-react'
Missing peer dependency for eslint-plugin-react.
fix
Install required plugins: npm install eslint-plugin-react --save-dev
Upgrade
Version history
3.1.3latest on npm
Audit
Dependencies
eslintrequiredrequired peer dependency to lint code
Agent activity
5 hits · last 30 days
node
4
Resources
eslint-config-code-style-lint-react — npm install eslint-config-code-style-lint-react · libregistry