Registry / testing / eslint-config-code-style-lint-ts

eslint-config-code-style-lint-ts

JSON →
library3.1.1jsnpmunverified

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.

npm install eslint-config-code-style-lint-ts
INSTALL
IMPORT
SIG · ESLINT-CONFIG-CODE
E
eslint-config-code-style-lint-ts
testingjavascriptv3.1.1
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.

extends
✓ "extends": ["code-style-lint-ts"]
✗ "extends": ["eslint-config-code-style-lint-ts"]
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.

Sets up ESLint with TypeScript config and Prettier integration using code-style-lint-ts preset.

// Install dependencies npm install eslint-config-code-style-lint-ts eslint prettier typescript -D // .eslintrc { "extends": ["code-style-lint-ts"], "parserOptions": { "project": "./tsconfig.json" } } // .prettierrc (optional if code-style-lint-ts includes prettier config) { "singleQuote": true, "trailingComma": "all" }
Debug
Known issues
breakingFrom v3.0.0, the extends name changed from 'code-style-lint' to 'code-style-lint-ts' for TypeScript projects.
fix
Update extends in .eslintrc to `"code-style-lint-ts"` instead of `"code-style-lint"`.
affects: >=3.0.0
deprecatedUsing `eslint-config-` prefix in extends array is deprecated; only use the short name.
fix
Use `"extends": ["code-style-lint-ts"]` without the `eslint-config-` prefix.
affects: >=2.x
gotchaThis package does not include TypeScript parser or plugin automatically; they must be installed as peer dependencies.
fix
Ensure `typescript` and `eslint` are in devDependencies.
affects: all
gotchaPrettier config may conflict with ESLint's formatting rules if not properly integrated; code-style-lint-ts disables conflicting rules but requires `prettier` in dependencies.
fix
Install `prettier` as devDependency and optionally create `.prettierrc`.
affects: all
breakingv2.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.
fix
Switch to `eslint-config-code-style-lint-ts` for TypeScript projects.
affects: <=2.x
Errors
Common errors & fixes
Error: Failed to load plugin '@typescript-eslint' declared in 'code-style-lint-ts'
@typescript-eslint plugin not installed as peer dependency.
fix
npm install @typescript-eslint/eslint-plugin @typescript-eslint/parser -D
Error: Cannot find module 'eslint-config-code-style-lint-ts'
Extends uses full package name instead of short name.
fix
Use `"extends": ["code-style-lint-ts"]` (without 'eslint-config-').
Parsing error: ESLint was configured to run on `<tsconfigRootDir>/src/index.ts` using `parserOptions.project`
Missing or incorrect tsconfig.json path.
fix
Set `parserOptions.project` to `"./tsconfig.json"` or the correct path.
Error: Cannot find module 'prettier'
Prettier not installed when code-style-lint-ts expects it.
fix
npm install prettier -D
Upgrade
Version history
3.1.1latest on npm
Audit
Dependencies
eslintrequiredPeer dependency — required to run ESLint, extends ESLint configs
typescriptrequiredPeer dependency — required for TypeScript parser and plugin
Agent activity
2 hits · last 30 days
node
2
Resources
eslint-config-code-style-lint-ts — npm install eslint-config-code-style-lint-ts · libregistry