Skip to content

Commit

Permalink
Fix spelling/grammar mistakes (prettier#5873)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgconway authored and lydell committed Feb 16, 2019
1 parent 379e84a commit 429da4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rationale.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ Secondly, [the alternate formatting makes it easier to edit the JSX](https://git

When it comes to the _contents_ of comments, Prettier can’t do much really. Comments can contain everything from prose to commented out code and ASCII diagrams. Since they can contain anything, Prettier can’t know how to format or wrap them. So they are left as-is. The only exception to this are JSDoc-style comments (block comments where every line starts with a `*`), which Prettier can fix the indentation of.

Then there’s the question of _where_ to put the comments. Turns out this is a really difficult problem. Prettier tries it best to keep your comments roughly where they where, but it’s no easy task because comments can be placed almost anywhere.
Then there’s the question of _where_ to put the comments. Turns out this is a really difficult problem. Prettier tries its best to keep your comments roughly where they were, but it’s no easy task because comments can be placed almost anywhere.

Generally, you get the best results when placing comments **on their own lines,** instead of at the end of lines. Prefer `// eslint-disable-next-line` over `// eslint-disable-line`.

Expand Down

0 comments on commit 429da4b

Please sign in to comment.