Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor: Extract files under /src/cli #9826

Merged
merged 2 commits into from Dec 8, 2020

Conversation

sosukesuzuki
Copy link
Member

Description

This PR doesn't touch logics.

  • Rename src/cli/util.js -> src/cli/core.js, because util.js includes core features for Prettier CLI.
  • Extract functions that is defined in src/cli/util.js to files under src/cli.

Checklist

Try the playground for this PR

WIP

Extract create-minimist-options

Remove warning

Fix

Extract format.js

Fix

Remove

fix

Fix

Extract files for cli and rename util -> core

Update tsconfig
Copy link
Sponsor Member

@fisker fisker left a comment

Choose a reason for hiding this comment

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

I think we should refactor createContext to Context class later.

@sosukesuzuki sosukesuzuki merged commit 8d0c8b2 into prettier:master Dec 8, 2020
@sosukesuzuki sosukesuzuki deleted the refactor-files-cli branch December 8, 2020 05:36
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants