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

Rename project? #11

Closed
MattKunze opened this issue Jan 31, 2019 · 1 comment
Closed

Rename project? #11

MattKunze opened this issue Jan 31, 2019 · 1 comment

Comments

@MattKunze
Copy link

MattKunze commented Jan 31, 2019

This is similar to #10, the Prettier docs specify:

Plugins are automatically loaded if you have them installed in the same node_modules directory where prettier is located. Plugin package names must start with @prettier/plugin- or prettier-plugin- to be registered.

The VS Code extension seems to have some open problems with plugins (prettier/prettier-vscode#395), but in Atom at least it will auto-format on save if I manually rename the folder in node_modules to 'prettier-csharp-plugin'

You can also see that it's registered automatically with prettier --support-info (I found this through prettier/prettier-atom#395 (comment)):

$ ./node_modules/.bin/prettier --support-info | grep '"\.cs'
      "extensions": [".css"],
      "extensions": [".cs", ".cake", ".cshtml", ".csx"],
@MattKunze MattKunze changed the title Rename project Rename project? Jan 31, 2019
@warrenseine
Copy link
Owner

I actually read about it today morning! It's done:

  • Repository renamed
  • New package published
  • Previous package deprecated
  • README updated
  • prettier --write File.cs tested successfully!

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

No branches or pull requests

2 participants