An ESLint shareable flat config for JavaScript projects, providing a comprehensive set of linting rules including style, import, Jest, and unicorn plugins. Current stable version is 28.0.3, requiring Node >=22, ESLint 10, and flat config. Key differentiators: integrates Prettier formatting, updates peer deps frequently, and drops legacy eslintrc support. Released irregularly with breaking changes on major bumps; v28 drops Node 20 and switches to flat config only.
npm install eslint-config-tcVerified import paths — ran on the pinned version, not inferred.
Basic setup for ESLint flat config using eslint-config-tc with a rule override.
Upgrade to Node >=22 and use eslint.config.mjs flat config.
Use Node >=20.
Update eslint-plugin-jest to ^28.0.0; remove jest/no-if from overrides.
Update compatibility: eslint-plugin-prettier >=5, prettier >=3.
Run npx install-peerdeps --dev eslint-config-tc to install all peers.
Use import syntax or dynamic import().
Use import syntax in an ESM context: import tcConfig from 'eslint-config-tc';
Install peer dependencies via npx install-peerdeps --dev eslint-config-tc, and use eslint.config.mjs flat config.
npm install --save-dev @eslint/js
Remove jest/no-if from your overrides.