@kumix/eslint-config
v0.1.2
Published
Common ESLint configuration.
Downloads
224
Maintainers
Readme
@kumix/eslint-config
Common ESLint configuration.
This package is only available via ES Modules and requires ESLint 9 or greater, since it uses flat configs.
Installation
bun add -D @kumix/eslint-config eslint typescriptConfiguration
This package exposes a single flat config, designed to run alongside @kumix/biome-config (Biome handles formatting and import sorting, ESLint handles type-aware linting).
It is available under the fast named export.
// eslint.config.js
import { configs } from "@kumix/eslint-config";
export default [
...configs.fast,
{
languageOptions: {
parserOptions: {
tsconfigRootDir: import.meta.dirname,
},
},
},
];What's included
- ESLint recommended rules (
@eslint/js) - typescript-eslint
strictTypeChecked+stylisticTypeChecked(type-aware) - Turborepo config (
eslint-config-turbo) - Browser, ES2024, and worker globals; CommonJS handling for
*.cjsand common config files - Type checking disabled for plain
.js/.cjs/.mjsfiles - Ignores:
**/.wrangler/**,dist/**, and Vite timestamp files
Custom rules
@typescript-eslint/explicit-member-accessibility: error (nopublickeyword)@typescript-eslint/naming-convention: private members must becamelCasewith a leading underscoreno-unused-vars/@typescript-eslint/no-unused-vars: off (handled by Biome)@typescript-eslint/no-non-null-assertion: off (handled by Biome)
Biome Integration
This config intentionally leaves formatting and import sorting to Biome, and focuses ESLint on type-aware linting that Biome can't do. Rules already covered by Biome (unused variables, == vs ===, non-null assertions) are turned off here to avoid duplicate reporting.
For the best experience, pair it with @kumix/biome-config:
bun add -D @kumix/biome-config @biomejs/biome// biome.jsonc
{
"$schema": "https://biomejs.dev/schemas/latest/schema.json",
"extends": ["@kumix/biome-config/base"],
}Division of responsibilities
| Concern | Handled by |
| ----------------------------------------- | ---------- |
| Formatting | Biome |
| Import sorting / organizing | Biome |
| Unused imports / variables | Biome |
| == vs === (noDoubleEquals) | Biome |
| Type-aware linting (strictTypeChecked) | ESLint |
| Stylistic type rules | ESLint |
| Naming conventions & member accessibility | ESLint |
Links
License
MIT © Kumix Labs
