@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 **/dist and the rest itself). lib is not, since some units keep source there; a package that builds into it ignores it itself;
  • an unused argument named _x is allowed, and so is an empty catch {} (not catch (_e) {}, which no-unused-vars still reports);
  • tests (*.test.*, *.spec.*, test/, tests/, e2e/) and scripts/ may log, and drop no-unused-expressions, no-unnecessary-type-assertion and unbound-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
Details
npm
2026-11-07 22:59:03 +00:00
646
2026-11-25 05:21:09 +00:00
Corentin JOURNOIS
UNLICENSED
39 KiB
Assets (1)
Versions (5) View all
2.1.3 2026-11-16
2.1.2 2026-11-12
2.1.1 2026-11-07
2.1.0 2026-11-05
2.0.3 2026-11-02