@cjournois/eslint-config-ts (2.1.1)
Published 2026-11-07 22:59:03 +00:00 by cjournois
Installation
@cjournois:registry=npm config set @cjournois:registry=npm install @cjournois/eslint-config-ts@2.1.1"@cjournois/eslint-config-ts": "2.1.1"About this package
@cjournois/eslint-config-ts
One ESLint flat config (ESLint v9 and v10) tuned for AI agents: type-checked, core correctness and React hooks rules only. Formatting, and the React DOM and import checks, belong to @cjournois/biome-config-ts. Single config per entry point (no recommended/strict split), with an optional React entry.
Proprietary — Copyright (c) 2026 cjournois. All rights reserved. SPDX: UNLICENSED. See LICENSE for terms.
Install
bun add -d @cjournois/eslint-config-ts \
@eslint/js eslint typescript-eslint
Usage
The default export is a flat-config array — spread it:
// eslint.config.js
import config from '@cjournois/eslint-config-ts';
import { defineConfig } from 'eslint/config';
export default defineConfig(
{ ignores: ['lib'] },
...config,
);
Already built in, so units no longer re-add them:
- generated output at the config root is ignored:
dist,coverage,reports,.stryker-tmp,test-results,playwright-report(a root config over nested packages still ignores**/distand the rest itself).libis not, since some units keep source there; a package that builds into it ignores it itself; - an unused argument named
_xis allowed, and so is an emptycatch {}(notcatch (_e) {}, whichno-unused-varsstill reports); - tests (
*.test.*,*.spec.*,test/,tests/,e2e/) andscripts/may log, and dropno-unused-expressions,no-unnecessary-type-assertionandunbound-method.
React
bun add -d eslint-plugin-react-hooks
import config from '@cjournois/eslint-config-ts/react';
Per-repo overrides
Add extra config objects after the spread:
...config,
{
files: ['src/lib/log.ts'],
rules: { 'no-console': 'off' },
},
);
Source
Repository: git.journois.com/cjournois/library
Dependencies
Development dependencies
| ID | Version |
|---|---|
| @eslint/js | 10.0.1 |
| @stryker-mutator/core | 10.1.1 |
| eslint | 10.14.0 |
| eslint-plugin-react-hooks | 7.1.1 |
| tsdown | 0.23.7 |
| typescript | 6.0.3 |
| typescript-eslint | 8.72.1 |
Peer dependencies
| ID | Version |
|---|---|
| @eslint/js | ^9 || ^10 |
| eslint | ^9 || ^10 |
| eslint-plugin-react-hooks | ^7 |
| typescript-eslint | ^8 |