Repository navigation
Add option philosophy to docs - #3855
Conversation
| * `--jsx-bracket-same-line` was needed for a big company with a huge code base (Facebook), which backed the project when it got started, to be able to [adopt Prettier at all](https://github.com/prettier/prettier/pull/661#issuecomment-295770645). | ||
|
|
||
| Finally, perhaps the most interesting of them all is `--bracket-spacing`. | ||
| The truth is that not even [Prettier's creator remembers exactly why it exists](https://github.com/prettier/prettier/issues/715#issuecomment-281096495). It was added super early on without much thought. It now serves as an example of the types of options we should avoid. |
There was a problem hiding this comment.
The linked comment doesn't actually say that he doesn't remember why it exists, so this is a bit misleading...
There was a problem hiding this comment.
That was my interpretation. Do you have a better suggestion?
There was a problem hiding this comment.
After re-reading it, I can see your interpretation now. I think it's fine.
There was a problem hiding this comment.
Note that I changed “remembers” to “knows” – is that better?
vjeux
left a comment
There was a problem hiding this comment.
Thanks for this well written explanation :)
|
Thanks a lot for this! We meant to write something like this a long time ago. |
|
@lydell Done ✅ |
|
Woah, I didn't know that common replies page existed. Nice |
* 'master' of github.com:prettier/prettier: tests(css): custom media (#3879) Add 3YOURMIND to users.yml (#3881) fix(css): stringify unquoted data urls (#3877) fix(css): at rules improve formatting and tests (#3828) Add option philosophy to docs (#3855) docs: add information about precise-commits (#3818) Remove redundant quotes from image links in .yml files (#3860)
* 'master' of github.com:prettier/prettier: Remove commented out code (#3886) feat: Add support for no-response-bot (#3873) refactor(printer-postcss): use `node` name and implement helper functions (#3893) tests(css): custom media (#3879) Add 3YOURMIND to users.yml (#3881) fix(css): stringify unquoted data urls (#3877) fix(css): at rules improve formatting and tests (#3828) Add option philosophy to docs (#3855) docs: add information about precise-commits (#3818)
|
Funny enough, |
Note to anyone finding this PR: This is not an attempt to impose my philosophy on Prettier. I've tried hard to write down what I've gathered from the project during its ~1 year of existence.