Skip to content

Update to latest ESLint and @typescript-eslint packages with flat config migration#32

Merged
gavinbarron merged 2 commits intomainfrom
copilot/update-eslint-typescript-eslint-packages
Mar 31, 2026
Merged

Update to latest ESLint and @typescript-eslint packages with flat config migration#32
gavinbarron merged 2 commits intomainfrom
copilot/update-eslint-typescript-eslint-packages

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 31, 2026

Bumps @typescript-eslint/* from alpha (^8.0.0-alpha.54) to stable ^8.0.0, updates ESLint peer dependency to ^9.0.0 || ^10.0.0, and migrates configs from legacy eslintrc format to ESLint flat config — required for ESLint 10 compatibility.

Dependency changes (package.json)

  • @typescript-eslint/eslint-plugin / parser: ^8.0.0-alpha.54^8.0.0
  • eslint: ^9.7.0^9.0.0 || ^10.0.0
  • Added @eslint/js: ^9.0.0 || ^10.0.0 — provides js.configs.recommended for flat config
  • Added globals: >=14.0.0 — replaces the legacy env block for browser/node/es2015 globals

core.js — flat config array

Replaces the single legacy eslintrc export with a flat config array using @typescript-eslint's new flat/ config entries:

// Before (legacy format)
module.exports = {
  extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended-type-checked', ...],
  parser: '@typescript-eslint/parser',
  env: { browser: true, es6: true, node: true },
  ...
};

// After (flat config)
module.exports = [
  js.configs.recommended,
  ...tsPlugin.configs['flat/recommended-type-checked'],
  ...tsPlugin.configs['flat/stylistic-type-checked'],
  prettier,
  { plugins, languageOptions: { globals, parser: tsParser, parserOptions: { project: './tsconfig.json' } }, rules }
];

index.js — React flat config

Replaces mutation of the core export with a proper flat config array, using eslint-plugin-react's configs.flat.recommended (available since v7.33):

module.exports = [
  ...core,
  reactPlugin.configs.flat['recommended'],
  { rules: { 'react/no-unstable-nested-components': ['warn', { allowAsProps: true }] }, settings: { react: { version: 'detect' } } }
];

README.md

Updated usage examples from legacy extends: [...] to eslint.config.js flat config spread pattern.

Copilot AI changed the title [WIP] Update to latest versions of eslint and @typescript-eslint packages Update to latest ESLint and @typescript-eslint packages with flat config migration Mar 31, 2026
Copilot AI requested a review from gavinbarron March 31, 2026 01:09
@gavinbarron gavinbarron marked this pull request as ready for review March 31, 2026 01:10
@gavinbarron gavinbarron requested a review from a team as a code owner March 31, 2026 01:10
@gavinbarron gavinbarron enabled auto-merge March 31, 2026 16:54
@gavinbarron gavinbarron disabled auto-merge March 31, 2026 16:55
@gavinbarron gavinbarron enabled auto-merge (squash) March 31, 2026 16:55
@gavinbarron gavinbarron merged commit ddd4fc0 into main Mar 31, 2026
4 checks passed
@gavinbarron gavinbarron deleted the copilot/update-eslint-typescript-eslint-packages branch March 31, 2026 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

update to latest versions of eslint and @typescript-eslint/* pacakages

4 participants