Registry / testing / eslint-config-tc

eslint-config-tc

JSON →
library28.0.3jsnpmunverified

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-tc
INSTALL
IMPORT
SIG · ESLINT-CONFIG-TC
E
eslint-config-tc
testingjavascriptv28.0.3
Install
—
Import
—
Disk
—
Pass rate
0/ 6
Env Coverage0 / 6
glibc
18–22
musl
18–22
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18–226 runs
build_error
glibc
node 18–226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default (config array)
✓ import tcConfig from 'eslint-config-tc';
✗ const tcConfig = require('eslint-config-tc');
Package is ESM-only since v28; CommonJS require() throws ERR_REQUIRE_ESM.
TypeScript config (if any)
✓ import tcConfig from 'eslint-config-tc'; // same as JS
✗ import { default } from 'eslint-config-tc';
No separate TS config; flat config works with @typescript-eslint/parser if added manually.
module.exports (deprecated)
✓ // Not applicable; use flat config spread
✗ module.exports = require('eslint-config-tc');
Package does not export a CommonJS module; use ESM import.

Basic setup for ESLint flat config using eslint-config-tc with a rule override.

// eslint.config.mjs import tcConfig from 'eslint-config-tc'; export default [ ...tcConfig, { rules: { 'no-console': 'warn', }, }, ];
Debug
Known issues
breakingv28.0.0 drops support for Node 20 and ESLint 10 flat config only, removing .eslintrc compatibility.
fix
Upgrade to Node >=22 and use eslint.config.mjs flat config.
affects: >=28.0.0
breakingv27.0.0 drops Node 18.
fix
Use Node >=20.
affects: >=27.0.0
breakingv26.0.0 requires eslint-plugin-jest >=28.0.0 and removes jest/no-if rule.
fix
Update eslint-plugin-jest to ^28.0.0; remove jest/no-if from overrides.
affects: >=26.0.0
deprecatedv24.0.0 requires eslint-plugin-prettier ^5.0.0 and prettier ^3.0.0; older versions are deprecated.
fix
Update compatibility: eslint-plugin-prettier >=5, prettier >=3.
affects: >=24.0.0
gotchaPeer dependencies must be installed manually; using npx install-peerdeps --dev eslint-config-tc is recommended.
fix
Run npx install-peerdeps --dev eslint-config-tc to install all peers.
affects: >=28.0.0
gotchaPackage is ESM-only since v28; require() throws ERR_REQUIRE_ESM.
fix
Use import syntax or dynamic import().
affects: >=28.0.0
Errors
Common errors & fixes
Error [ERR_REQUIRE_ESM]: require() of ES Module /path/to/eslint-config-tc/index.mjs not supported.
Using CommonJS require() to load an ESM-only package.
fix
Use import syntax in an ESM context: import tcConfig from 'eslint-config-tc';
ESLint couldn't find the config "eslint-config-tc".
Missing or incorrectly installed package; or using outdated eslintrc format.
fix
Install peer dependencies via npx install-peerdeps --dev eslint-config-tc, and use eslint.config.mjs flat config.
Cannot find module '@eslint/js'
Missing peer dependency @eslint/js.
fix
npm install --save-dev @eslint/js
Configuration for rule "jest/no-if" is invalid: Value 'error' is not accepted.
v26.0.0 removed jest/no-if rule; referencing it in overrides causes error.
fix
Remove jest/no-if from your overrides.
Upgrade
Version history
28.0.3latest on npm
Audit
Dependencies
@eslint/jsrequiredpeer dependency for ESLint JS rules
eslintrequiredpeer dependency (>=10)
eslint-plugin-import-xrequiredpeer dependency for import rules
eslint-plugin-jestrequiredpeer dependency for Jest rules
eslint-plugin-prettierrequiredpeer dependency for Prettier integration
eslint-plugin-unicornrequiredpeer dependency for unicorn rules
globalsrequiredpeer dependency for global variable definitions
prettierrequiredpeer dependency for formatting
Agent activity
4 hits · last 30 days
node
4
Resources
eslint-config-tc — npm install eslint-config-tc · libregistry