Fix spelling/grammar mistakes (#5873)

master
jgconway 2019-02-16 08:50:56 +00:00 committed by Simon Lydell
parent 379e84a6a4
commit 429da4bc52
1 changed files with 1 additions and 1 deletions

View File

@ -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 cant do much really. Comments can contain everything from prose to commented out code and ASCII diagrams. Since they can contain anything, Prettier cant 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 theres 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 its no easy task because comments can be placed almost anywhere.
Then theres 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 its 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`.