Skip to content

[Docs] replace deprecated tseslint.config() with defineConfig() - #3295

Open
unrevised6419 wants to merge 3 commits into
import-js:mainfrom
unrevised6419:docs/define-config-readme
Open

unrevised6419 wants to merge 3 commits into
import-js:mainfrom
unrevised6419:docs/define-config-readme

Conversation

@unrevised6419

@unrevised6419 unrevised6419 commented Oct 3, 2026 •

Copy link
Copy Markdown

tseslint.config() is deprecated in favor of ESLint's own defineConfig() from eslint/config (ESLint v9.22.0+).

This updates the README's TypeScript flat config section to:

  • use defineConfig() instead of tseslint.config(), keeping the extends: [importPlugin.flatConfigs.recommended, importPlugin.flatConfigs.typescript] usage
  • include tseslint.configs.recommended in the example
  • point users on ESLint versions older than v9.22.0 to @eslint/config-helpers, per the ESLint blog
  • note that the same extends usage still applies to tseslint.config() for users who have not migrated yet

🤖 Generated with Claude Code

unrevised6419 and others added 3 commits October 4, 2026 01:58
`tseslint.config()` is deprecated in favor of ESLint's own
`defineConfig()` from `eslint/config` (ESLint v9.22.0+).
See https://typescript-eslint.io/packages/typescript-eslint/#config-deprecated

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.59%. Comparing base (a60d715) to head (0b753e8).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3295   +/-   ##
=======================================
  Coverage   79.59%   79.59%           
=======================================
  Files          98       98           
  Lines        4549     4549           
  Branches     1543     1575   +32     
=======================================
  Hits         3621     3621           
  Misses        928      928           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant