From 164801aa9352bd4cc5713284a844aa78df59782f Mon Sep 17 00:00:00 2001 From: Simon Lydell Date: Fri, 9 Nov 2018 18:58:53 +0100 Subject: [PATCH] Update rationale to expand on sorting (#5417) Inspired by #5412. --- docs/rationale.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/rationale.md b/docs/rationale.md index ca7132dddfba..6e92197a25ae 100644 --- a/docs/rationale.md +++ b/docs/rationale.md @@ -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.