Skip to content

Commit

Permalink
Update rationale to expand on sorting (#5417)
Browse files Browse the repository at this point in the history
Inspired by #5412.
  • Loading branch information
lydell committed Nov 9, 2018
1 parent 6fafd0a commit 164801a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rationale.md
Expand Up @@ -311,4 +311,4 @@ Here are a few examples of things that are out of scope for Prettier:
- Using `+` to break long string literals into parts that fit the print width.
- Adding/removing `{}` and `return` where they are optional.
- Turning `?:` into `if`-`else` statements.
- Sorting and hoisting `import`s. (Sorting is unsafe because of side effects, which would violate the [correctness](#correctness) goal.)
- Sorting/moving imports, object keys, class members, JSX keys, CSS properties or anything else. Apart from being a _transform_ rather than just printing (as mentioned above), sorting is potentially unsafe because of side effects (for imports, as an example) and makes it difficult to verify the most important [correctness](#correctness) goal.

0 comments on commit 164801a

Please sign in to comment.