{"id":40966,"library":"eslint-config-code-style-lint-react","title":"code-style-lint React ESLint Config","description":"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.","status":"active","version":"3.1.3","language":"javascript","source_language":"en","source_url":"ssh://git@github.com/laoer536/code-style-lint","tags":["javascript"],"install":[{"cmd":"npm install eslint-config-code-style-lint-react","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-config-code-style-lint-react","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-config-code-style-lint-react","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"required peer dependency to lint code","package":"eslint","optional":false}],"imports":[{"note":"Configuration is applied via ESLint's extends mechanism, not direct import.","wrong":"import or require the package directly","symbol":"config","correct":"extends: ['code-style-lint-react'] in .eslintrc"},{"note":"Version 3.1.3 uses legacy eslintrc format. For flat config (ESLint >=9), import as default.","wrong":"module.exports = require('eslint-config-code-style-lint-react');","symbol":"main","correct":"import eslintConfig from 'eslint-config-code-style-lint-react'; // in eslint.config.js (flat config)"},{"note":"No separate rules export; all rules are bundled in the config.","wrong":"import rules from 'eslint-config-code-style-lint-react/rules'","symbol":"rules","correct":"// can override rules via overrides in eslintrc"}],"quickstart":{"code":"// .eslintrc.json\n{\n  \"extends\": [\"code-style-lint-react\"],\n  \"rules\": {\n    // your overrides\n  }\n}","lang":"javascript","description":"Shows how to extend the shared config in a .eslintrc file."},"warnings":[{"fix":"Run: npm install eslint prettier --save-dev","message":"Requires eslint as a peer dependency. Must install eslint and prettier separately.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Use eslint.config.js flat config and import the config as default export.","message":"Legacy eslintrc format is used. May not work with flat config (ESLint >=9) without migration.","severity":"deprecated","affected_versions":">=3.0.0"},{"fix":"Use eslint-config-code-style-lint-ts for TypeScript React.","message":"Config is designed for React JS projects only, not TypeScript or Vue.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"search_vec":"'3.1.3':27 'bundl':46 'code':2,19 'code-style-lint':1 'common':47 'config':7 'configur':11,41 'consist':18 'current':23 'depend':60 'develop':44 'differenti':50 'direct':70 'eslint':6,10,40,62 'extend':71 'focus':52 'javascript':14,57,72 'lightweight':68 'lint':4,21 'maintain':30 'npm':36 'packag':38,66 'peer':59 'period':32 'prettier':64 'project':15 'provid':16 'react':5,13,43,55 'releas':34 'requir':58 'rule':48 'setup':22 'shareabl':9 'simplifi':39 'specif':53 'stabl':24 'style':3,20 'updat':33 'version':25 'via':35","created_at":"2026-06-04T18:50:07.747736+00:00","updated_at":"2026-06-04T18:50:07.747736+00:00","problems":[{"fix":"Run: npm install eslint-config-code-style-lint-react --save-dev","cause":"Package not installed or missing from node_modules.","error":"Error: Cannot find module 'eslint-config-code-style-lint-react'"},{"fix":"Install required plugins: npm install eslint-plugin-react --save-dev","cause":"Missing peer dependency for eslint-plugin-react.","error":"Error: Failed to load plugin 'react' declared in 'code-style-lint-react'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/laoer536/code-style-lint#readme","github":"ssh://git@github.com/laoer536/code-style-lint","docs":null,"changelog":null,"pypi":null,"npm":"eslint-config-code-style-lint-react","openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-04","next_check":"2026-09-02","install_tag":null}}