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

[Feature Request] Add support for TS config files (prettier.config.ts) #16119

Open
aryaemami59 opened this issue Feb 24, 2024 · 5 comments
Open
Labels
status:needs discussion Issues needing discussion and a decision to be made before action can be taken type:enhancement A potential new feature to be added, or an improvement to how we print something

Comments

@aryaemami59
Copy link

Related to #16112

Environments:

  • Prettier Version: 3.2.5
  • Running Prettier via:
  • Runtime:
  • Operating System:
  • Prettier plugins (if any):

Steps to reproduce:

Expected behavior:

Actual behavior:

@fisker fisker added type:enhancement A potential new feature to be added, or an improvement to how we print something status:needs discussion Issues needing discussion and a decision to be made before action can be taken labels Feb 24, 2024
@JounQin
Copy link
Member

JounQin commented Mar 5, 2024

prettier's configuration is simple enough and quite suitable to use jsdoc instead.

@MrHBS
Copy link

MrHBS commented Jun 2, 2024

@fisker Would you be accepting a PR for this?

@fisker
Copy link
Member

fisker commented Jun 6, 2024

@fisker Would you be accepting a PR for this?

See #16112

@aryaemami59
Copy link
Author

@fisker Are you open to the idea of re-opening that PR? tsx has a tsImport feature now that could allow us to easily implement this.

@fisker
Copy link
Member

fisker commented Jul 26, 2024

Since Node.js added --experimental-strip-types support, I think I'm open to accept TS config files. But only if import('./prettier.config.ts') works directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:needs discussion Issues needing discussion and a decision to be made before action can be taken type:enhancement A potential new feature to be added, or an improvement to how we print something
Projects
None yet
Development

No branches or pull requests

5 participants
@fisker @JounQin @MrHBS @aryaemami59 and others