{"id":25477,"library":"eslint-config-code-style-lint-react-ts","title":"eslint-config-code-style-lint-react-ts","description":"ESLint and Prettier shareable config for React TypeScript projects. Version 3.1.4. Part of the code-style-lint family covering JS/TS, Vue, React, and Nuxt. Provides a zero-config ESLint setup with TypeScript support, React hooks, and JSX accessibility rules. Releases are periodic with dependency updates. Differentiator: unified config across React TS projects, easy migration via one-line extends.","status":"active","version":"3.1.4","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-ts","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-config-code-style-lint-react-ts","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-config-code-style-lint-react-ts","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency","package":"eslint","optional":false},{"reason":"peer dependency","package":"typescript","optional":false},{"reason":"required for formatting","package":"prettier","optional":true}],"imports":[{"note":"The package name in extends omits the eslint-config- prefix.","wrong":"extends: ['eslint-config-code-style-lint-react-ts']","symbol":"eslint-config","correct":"extends: ['code-style-lint-react-ts']"},{"note":"This is a shareable ESLint config, not a JS module. Use in .eslintrc file.","wrong":"import config from 'eslint-config-code-style-lint-react-ts'","symbol":"config object","correct":"module.exports = { extends: ['code-style-lint-react-ts'] }"},{"note":"Run ESLint directly, not the config package.","wrong":"npx eslint-config-code-style-lint-react-ts","symbol":"CLI","correct":"npx eslint ."}],"quickstart":{"code":"npm install eslint-config-code-style-lint-react-ts eslint prettier typescript -D\necho '{\n  \"extends\": [\"code-style-lint-react-ts\"]\n}' > .eslintrc\necho '{\n  \"semi\": true,\n  \"singleQuote\": true\n}' > .prettierrc\nnpx eslint . --fix","lang":"javascript","description":"Installs the config, creates .eslintrc with the shareable config, sets up Prettier, and lints the project."},"warnings":[{"fix":"Update ESLint and TypeScript to supported versions.","message":"Version 3.x requires ESLint 7+ and TypeScript 3.3+","severity":"breaking","affected_versions":">=3.0.0 <4.0.0"},{"fix":"Use 'code-style-lint-react-ts' instead of full package name.","message":"The extends name must omit the eslint-config- prefix.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Upgrade to v3 to get updated rule sets.","message":"Version 2.x uses deprecated ESLint rules (e.g., no-use-before-define).","severity":"deprecated","affected_versions":">=2.0.0 <3.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run npm install eslint-config-code-style-lint-react-ts -D and use 'code-style-lint-react-ts' in extends.","cause":"The package is not installed or the extends name is incorrect.","error":"ESLint couldn't find the config 'code-style-lint-react-ts'"},{"fix":"Install the package: npm install eslint-config-code-style-lint-react-ts -D.","cause":"The package is not installed under node_modules.","error":"Cannot find module 'eslint-config-code-style-lint-react-ts'"},{"fix":"Adjust your tsconfig.json compilerOptions according to the config's peer dependency notes.","cause":"The config may assume less strict TypeScript options.","error":"TypeScript 'strict' mode conflicts with config"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}