{"id":25478,"library":"eslint-config-code-style-lint-ts","title":"code-style-lint-ts","description":"ESLint and Prettier shareable config for TypeScript projects, part of the code-style-lint family covering JS, Vue3, and React variants. At v3.1.1 (2023), it provides a zero-config preset that extends recommended rules for TypeScript and integrates Prettier. Weekly releases address dependency updates and framework support. It differentiates from alternatives like `eslint-config-airbnb` by being lighter, framework-agnostic (works with vanilla TS, Vue3, React), and tightly coupled with Prettier for formatting.","status":"active","version":"3.1.1","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-ts","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-config-code-style-lint-ts","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-config-code-style-lint-ts","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency — required to run ESLint, extends ESLint configs","package":"eslint","optional":false},{"reason":"Peer dependency — required for TypeScript parser and plugin","package":"typescript","optional":false}],"imports":[{"note":"In .eslintrc, the package name (without 'eslint-config-') is used in extends array. Since v3.0.0, using the full name may not resolve correctly.","wrong":"\"extends\": [\"eslint-config-code-style-lint-ts\"]","symbol":"extends","correct":"\"extends\": [\"code-style-lint-ts\"]"}],"quickstart":{"code":"// Install dependencies\nnpm install eslint-config-code-style-lint-ts eslint prettier typescript -D\n\n// .eslintrc\n{\n  \"extends\": [\"code-style-lint-ts\"],\n  \"parserOptions\": {\n    \"project\": \"./tsconfig.json\"\n  }\n}\n\n// .prettierrc (optional if code-style-lint-ts includes prettier config)\n{\n  \"singleQuote\": true,\n  \"trailingComma\": \"all\"\n}","lang":"typescript","description":"Sets up ESLint with TypeScript config and Prettier integration using code-style-lint-ts preset."},"warnings":[{"fix":"Update extends in .eslintrc to `\"code-style-lint-ts\"` instead of `\"code-style-lint\"`.","message":"From v3.0.0, the extends name changed from 'code-style-lint' to 'code-style-lint-ts' for TypeScript projects.","severity":"breaking","affected_versions":">=3.0.0"},{"fix":"Use `\"extends\": [\"code-style-lint-ts\"]` without the `eslint-config-` prefix.","message":"Using `eslint-config-` prefix in extends array is deprecated; only use the short name.","severity":"deprecated","affected_versions":">=2.x"},{"fix":"Ensure `typescript` and `eslint` are in devDependencies.","message":"This package does not include TypeScript parser or plugin automatically; they must be installed as peer dependencies.","severity":"gotcha","affected_versions":"all"},{"fix":"Install `prettier` as devDependency and optionally create `.prettierrc`.","message":"Prettier config may conflict with ESLint's formatting rules if not properly integrated; code-style-lint-ts disables conflicting rules but requires `prettier` in dependencies.","severity":"gotcha","affected_versions":"all"},{"fix":"Switch to `eslint-config-code-style-lint-ts` for TypeScript projects.","message":"v2.x used a different package name `eslint-config-code-style-lint` without the `-ts` suffix; separate packages for JS/TS/Vue/React were introduced in v3.","severity":"breaking","affected_versions":"<=2.x"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"npm install @typescript-eslint/eslint-plugin @typescript-eslint/parser -D","cause":"@typescript-eslint plugin not installed as peer dependency.","error":"Error: Failed to load plugin '@typescript-eslint' declared in 'code-style-lint-ts'"},{"fix":"Use `\"extends\": [\"code-style-lint-ts\"]` (without 'eslint-config-').","cause":"Extends uses full package name instead of short name.","error":"Error: Cannot find module 'eslint-config-code-style-lint-ts'"},{"fix":"Set `parserOptions.project` to `\"./tsconfig.json\"` or the correct path.","cause":"Missing or incorrect tsconfig.json path.","error":"Parsing error: ESLint was configured to run on `<tsconfigRootDir>/src/index.ts` using `parserOptions.project`"},{"fix":"npm install prettier -D","cause":"Prettier not installed when code-style-lint-ts expects it.","error":"Error: Cannot find module 'prettier'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}