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

Implement Formatting Options with Configuration File #10

Closed
belav opened this issue Feb 26, 2021 · 1 comment
Closed

Implement Formatting Options with Configuration File #10

belav opened this issue Feb 26, 2021 · 1 comment
Labels
type:enhancement New feature or request
Milestone

Comments

@belav
Copy link
Owner

belav commented Feb 26, 2021

Initial ideas

  1. width
  2. tabs vs spaces
  3. configurable number of spaces
  4. force braces
  5. maybe brace style
  6. maybe trailing commas
  7. maybe end of line, \n vs \r\n

Read https://prettier.io/docs/en/option-philosophy.html and prettier/prettier#40 again before adding any options.

@belav belav added this to the Beta milestone Feb 26, 2021
@belav belav added the type:enhancement New feature or request label Mar 1, 2021
@belav belav modified the milestones: Beta, 0.9.1 Apr 26, 2021
@belav belav changed the title Implement Formatting Options Implement Formatting Options + Config File Apr 26, 2021
@belav
Copy link
Owner Author

belav commented Apr 26, 2021

The following options are now available
printWidth - roughly how wide things will print. Defaults to 100
useTabs - should indents be done with tabs? Defaults to false
tabWidth - if not using tabs, how many spaces? Defaults to 4
endOfLine - "lf" or "crlf", defaults to "lf"

The options are specified in a file. In order of precedence

  • .csharpierrc in JSON or YAML
  • .csharpierrc.json
  • .csharpierrc.yaml or csharpierrc.yml

This was referenced Apr 26, 2021
belav added a commit that referenced this issue Apr 26, 2021
@belav belav closed this as completed May 2, 2021
@belav belav changed the title Implement Formatting Options + Config File Implement Formatting Options with Configuration File May 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant