{"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,"search_vec":"'3.1.4':19 'access':48 'across':59 'code':4,24 'code-style-lint':23 'config':3,13,38,58 'cover':28 'depend':54 'differenti':56 'easi':63 'eslint':2,9,39 'eslint-config-code-style-lint-react-t':1 'extend':69 'famili':27 'hook':45 'javascript':70 'js/ts':29 'jsx':47 'line':68 'lint':6,26 'migrat':64 'nuxt':33 'one':67 'one-lin':66 'part':20 'period':52 'prettier':11 'project':17,62 'provid':34 'react':7,15,31,44,60 'releas':50 'rule':49 'setup':40 'shareabl':12 'style':5,25 'support':43 'ts':8,61 'typescript':16,42 'unifi':57 'updat':55 'version':18 'via':65 'vue':30 'zero':37 'zero-config':36","created_at":"2026-05-01T13:44:57.853091+00:00","updated_at":"2026-05-01T13:44:57.853091+00:00","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,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/laoer536/code-style-lint","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/eslint-config-code-style-lint-react-ts","openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-05-01","next_check":"2026-07-30","install_tag":null}}