{"id":19537,"library":"eslint-config-kyt","title":"eslint-config-kyt","description":"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.","status":"active","version":"1.6.3","language":"javascript","source_language":"en","source_url":"https://github.com/nytimes/kyt/packages/eslint-config-kyt","tags":["javascript","kyt","eslint","config","eslint-config"],"install":[{"cmd":"npm install eslint-config-kyt","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-config-kyt","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-config-kyt","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency required for ESLint rules","package":"eslint","optional":false},{"reason":"peer dependency for Prettier integration","package":"prettier","optional":false},{"reason":"peer dependency for Babel parsing","package":"@babel/core","optional":false}],"imports":[{"note":"Use 'kyt' in extends, not the full package name. This is the shareable config pattern.","wrong":"extends: 'eslint-config-kyt'","symbol":"default config","correct":"module.exports = {\n  extends: ['kyt'],\n};"},{"note":"Prefer short name 'kyt/react' over full package path.","wrong":"extends: ['eslint-config-kyt/react']","symbol":"Namespaced config for React","correct":"module.exports = {\n  extends: ['kyt/react'],\n};"},{"note":"Package is CJS only; ESM import may fail in some setups.","wrong":"import config from 'eslint-config-kyt';","symbol":"CommonJS require","correct":"const config = require('eslint-config-kyt');"}],"quickstart":{"code":"// .eslintrc.js\nmodule.exports = {\n  extends: ['kyt'],\n  rules: {\n    'react/jsx-filename-extension': ['error', { extensions: ['.jsx'] }],\n  },\n  env: {\n    browser: true,\n    es2021: true,\n  },\n};\n\n// Install peer dependencies\n// npx install-peerdeps eslint-config-kyt\n","lang":"javascript","description":"Basic ESLint configuration using eslint-config-kyt with a custom rule override and environment settings."},"warnings":[{"fix":"Check rule compatibility with ESLint 7 and above; consider updating peer deps.","message":"Some rules from eslint-config-airbnb may be deprecated in newer ESLint versions","severity":"deprecated","affected_versions":">=1.6.0"},{"fix":"Run npx install-peerdeps eslint-config-kyt to install all peers.","message":"Requires specific peer dependencies; missing any causes runtime errors","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Review changelog for rule updates when upgrading from 0.x.","message":"Version 1.x might have incompatible rule changes compared to 0.x","severity":"breaking","affected_versions":">=1.0.0 <2.0.0"},{"fix":"Override parser if not using Babel, e.g., parser: '@typescript-eslint/parser'.","message":"The config assumes Babel parser; non-React projects may need parser adjustments","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Install all peer dependencies: npx install-peerdeps eslint-config-kyt","cause":"Missing peer dependency","error":"Error: Failed to load plugin 'react' declared in 'kyt': Cannot find module 'eslint-plugin-react'"},{"fix":"Update rule format per eslint-plugin-react docs, e.g., use ['error', { extensions: ['.jsx'] }]","cause":"Rule options changed in newer plugin version","error":"Error: .eslintrc.js: Configuration for rule 'react/jsx-filename-extension' is invalid"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}