Skip to content

OnlyCatAI/onlycat-eslint-config

Repository files navigation

@onlycat/eslint

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

Installation

Install the shared config package and its peer dependencies:

npm install --save-dev @onlycat/eslint eslint prettier typescript typescript-eslint @eslint/js

TypeScript configs

Use the base config for shared strictness, then extend the runtime-specific preset that matches the project.

Node and toolchain projects

{
    "extends": "@onlycat/eslint/tsconfig/node"
}

Vite and other bundler-driven web apps

{
    "extends": "@onlycat/eslint/tsconfig/web"
}

Base config only

{
    "extends": "@onlycat/eslint/tsconfig"
}

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors