Shared ESLint, Prettier and TypeScript configuration for OnlyCat projects.
This package provides a modern baseline for TypeScript projects, with a focus on:
- ESLint flat config
- TypeScript-aware linting
- Prettier formatting
- 4-space indentation
- 120-character print width
- Vite React TypeScript support
- Separate Node and web TypeScript presets
Install the shared config package and its peer dependencies:
npm install --save-dev @onlycat/eslint eslint prettier typescript typescript-eslint @eslint/jsUse the base config for shared strictness, then extend the runtime-specific preset that matches the project.
{
"extends": "@onlycat/eslint/tsconfig/node"
}{
"extends": "@onlycat/eslint/tsconfig/web"
}{
"extends": "@onlycat/eslint/tsconfig"
}