Skip to content

Conversation

@lumirlumir
Copy link
Member

Prerequisites checklist

What is the purpose of this pull request?

In this PR, I've added Prettier to keep formatting consistent.

The prettier.config.js file follows the common setup used across the ESLint organization:

I plan to add a .git-blame-ignore-revs file if preserving a clean git blame history is important.

What changes did you make? (Give an overview)

In this PR, I've added Prettier to keep formatting consistent.

Related Issues

Ref: eslint/js#671

Is there anything you'd like reviewers to focus on?

N/A

@eslintbot eslintbot added this to Triage Jan 25, 2026
@github-project-automation github-project-automation bot moved this to Needs Triage in Triage Jan 25, 2026
@lumirlumir lumirlumir marked this pull request as ready for review January 25, 2026 05:59
@lumirlumir lumirlumir requested a review from a team as a code owner January 25, 2026 05:59
Copilot AI review requested due to automatic review settings January 25, 2026 05:59
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR introduces Prettier as the code formatter for the eslint-transforms repository to ensure consistent formatting across the codebase. The configuration follows the standard setup used across other ESLint organization repositories.

Changes:

  • Added Prettier 3.8.1 as a dev dependency with configuration matching other ESLint org repos
  • Reformatted all JavaScript files to use tabs (tabWidth: 4) and JSON files to use 2 spaces
  • Removed ESLint formatting configuration in favor of Prettier
  • Added new CI workflow job to check formatting
  • Created .prettierignore to exclude CHANGELOG.md and test fixtures

Reviewed changes

Copilot reviewed 11 out of 15 changed files in this pull request and generated no comments.

Show a summary per file
File Description
prettier.config.js New Prettier configuration file with tabs for JS, spaces for JSON
.prettierignore Excludes CHANGELOG.md and test fixtures from formatting
package.json Adds Prettier 3.8.1 dependency and fmt/fmt:check scripts; updates ESLint version
eslint.config.js Removes eslint-config-eslint/formatting, reformatted with tabs
.github/workflows/ci.yml Adds new "format" job to check Prettier formatting, reformatted
.github/workflows/release-please.yml Reformatted with consistent YAML indentation
tests/**/*.js Reformatted with tabs instead of spaces
lib/**/*.js Reformatted with tabs instead of spaces
bin/eslint-transforms.js Reformatted with tabs instead of spaces
README.md Reformatted code examples with tabs
release-please-config.json Reformatted with 2-space indentation
.release-please-manifest.json Reformatted with 2-space indentation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

Projects

Status: Needs Triage

Development

Successfully merging this pull request may close these issues.

2 participants