Skip to content

feat: formatter option#36

Merged
euaaaio merged 4 commits intomainfrom
formatter-option
Jan 31, 2026
Merged

feat: formatter option#36
euaaaio merged 4 commits intomainfrom
formatter-option

Conversation

@euaaaio
Copy link
Copy Markdown
Member

@euaaaio euaaaio commented Jan 4, 2026

No description provided.

@euaaaio euaaaio force-pushed the formatter-option branch 2 times, most recently from 03769f9 to 6109030 Compare January 4, 2026 23:35
Copy link
Copy Markdown

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 a new formatter option to replace the deprecated prettier and stylistic options, providing a more unified and flexible approach to code formatting configuration.

  • Adds a new formatter option that accepts 'stylistic', 'prettier', false, or an object with stylistic configuration
  • Maintains backward compatibility by supporting deprecated options with console warnings
  • Updates type definitions to mark old options as deprecated and define the new FormatterOptions type

Reviewed changes

Copilot reviewed 7 out of 10 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/utils/index.js Adds resolveFormatter function to normalize formatter options and handle deprecated options with warnings
src/index.js Integrates resolveFormatter, removes deprecated option extraction, and passes resolved options to config functions
src/index.d.ts Defines new FormatterOptions type and marks prettier and stylistic options as deprecated
src/configs/vue.js Updates to use usePrettier instead of prettier, moves vue/define-macros-order rule to always-enabled section, updates comment
src/configs/vue.d.ts Updates interface to use usePrettier instead of separate prettier and stylistic options
src/configs/astro.js Updates to use useStylistic instead of stylistic parameter
src/configs/astro.d.ts Updates interface to use useStylistic instead of stylistic
eslint.config.js Updates config to use new formatter option with nested structure
docs/oxlint/UNSUPPORTED-RULES.md Reorders vue/define-macros-order entry in the list
README.md Updates documentation to describe new formatter option with examples

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

Comment thread src/utils/index.js
Comment thread src/utils/index.js
Comment thread src/utils/index.js
Comment thread src/configs/vue.js
@euaaaio euaaaio marked this pull request as ready for review January 30, 2026 22:55
@euaaaio euaaaio merged commit 8a31d8f into main Jan 31, 2026
3 checks passed
@euaaaio euaaaio deleted the formatter-option branch January 31, 2026 11:19
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.

2 participants