Registry / testing / eslint-config-kyt

eslint-config-kyt

JSON →
library1.6.3jsnpmunverified

ESLint configuration for kyt projects, maintained by The New York Times. Current stable version is 1.6.3, part of the kyt monorepo with infrequent releases and no known recent breaking changes. It provides a comprehensive set of ESLint rules for React, Jest, JSON, Prettier, and import ordering, based on Airbnb's config. Unlike generic configs, it is tailored for kyt's webpack-based setup and includes Babel parser support. Suitable for Node.js and browser environments.

npm install eslint-config-kyt
INSTALL
IMPORT
SIG · ESLINT-CONFIG-KYT
E
eslint-config-kyt
testingjavascriptv1.6.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
✓ module.exports = { extends: ['kyt'], };
✗ extends: 'eslint-config-kyt'
Use 'kyt' in extends, not the full package name. This is the shareable config pattern.
Namespaced config for React
✓ module.exports = { extends: ['kyt/react'], };
✗ extends: ['eslint-config-kyt/react']
Prefer short name 'kyt/react' over full package path.
CommonJS require
✓ const config = require('eslint-config-kyt');
✗ import config from 'eslint-config-kyt';
Package is CJS only; ESM import may fail in some setups.

Basic ESLint configuration using eslint-config-kyt with a custom rule override and environment settings.

// .eslintrc.js module.exports = { extends: ['kyt'], rules: { 'react/jsx-filename-extension': ['error', { extensions: ['.jsx'] }], }, env: { browser: true, es2021: true, }, }; // Install peer dependencies // npx install-peerdeps eslint-config-kyt
eslint --version
Debug
Known issues
deprecatedSome rules from eslint-config-airbnb may be deprecated in newer ESLint versions
fix
Check rule compatibility with ESLint 7 and above; consider updating peer deps.
affects: >=1.6.0
gotchaRequires specific peer dependencies; missing any causes runtime errors
fix
Run npx install-peerdeps eslint-config-kyt to install all peers.
affects: >=1.0.0
breakingVersion 1.x might have incompatible rule changes compared to 0.x
fix
Review changelog for rule updates when upgrading from 0.x.
affects: >=1.0.0 <2.0.0
gotchaThe config assumes Babel parser; non-React projects may need parser adjustments
fix
Override parser if not using Babel, e.g., parser: '@typescript-eslint/parser'.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Failed to load plugin 'react' declared in 'kyt': Cannot find module 'eslint-plugin-react'
Missing peer dependency
fix
Install all peer dependencies: npx install-peerdeps eslint-config-kyt
Error: .eslintrc.js: Configuration for rule 'react/jsx-filename-extension' is invalid
Rule options changed in newer plugin version
fix
Update rule format per eslint-plugin-react docs, e.g., use ['error', { extensions: ['.jsx'] }]
Upgrade
Version history
1.6.3latest on npm
Audit
Dependencies
eslintrequiredpeer dependency required for ESLint rules
prettierrequiredpeer dependency for Prettier integration
@babel/corerequiredpeer dependency for Babel parsing
Agent activity
4 hits · last 30 days
node
4
Resources
eslint-config-kyt — npm install eslint-config-kyt · libregistry