Skip to content

Use native flat Prettier config - #1750

Merged
jeffwidman merged 1 commit into
mainfrom
eslint-native-flat-prettier
Aug 10, 2026
Merged

jeffwidman merged 1 commit into
mainfrom
eslint-native-flat-prettier

Conversation

@jeffwidman

Copy link
Copy Markdown
Member

Summary

  • replace FlatCompat.extends("prettier") with eslint-config-prettier/flat
  • remove the compatibility-only path and URL setup
  • remove the direct @eslint/eslintrc dependency

eslint-plugin-github still installs @eslint/eslintrc transitively for its own use.

Stack

Validation

  • compared calculated rules and settings for source and test files
  • npm clean-install
  • npm run lint-check
  • npm run format-check
  • npx tsc --noEmit
  • git diff --check

Copilot AI balanced review requested due to automatic review settings August 10, 2026 19:02
@jeffwidman
jeffwidman requested a review from a team as a code owner August 10, 2026 19:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Replaces ESLint’s compatibility-based Prettier configuration with its native flat configuration.

Changes:

  • Imports eslint-config-prettier/flat directly.
  • Removes FlatCompat and path/URL setup.
  • Removes the direct @eslint/eslintrc dependency while retaining its transitive installation.
Show a summary per file
File Description
eslint.config.mjs Uses the native flat Prettier configuration.
package.json Removes the compatibility-only dependency.
package-lock.json Updates the root dependency declaration.

Review details

Tip

Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 2/3 changed files
  • Comments generated: 0
  • Review effort level: Balanced

Base automatically changed from eslint-v10-recommended-es2024 to main August 10, 2026 19:29
@jeffwidman
jeffwidman force-pushed the eslint-native-flat-prettier branch from acf6fb5 to a40ea36 Compare August 10, 2026 19:29
@jeffwidman
jeffwidman merged commit 5396645 into main Aug 10, 2026
11 checks passed
@jeffwidman
jeffwidman deleted the eslint-native-flat-prettier branch August 10, 2026 19:36
@pavera pavera mentioned this pull request Aug 27, 2026
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.

3 participants