From 03b05ff35171a24eabe1bd596ce5505c01855f77 Mon Sep 17 00:00:00 2001 From: Ian VanSchooten Date: Tue, 12 Mar 2024 07:57:49 -0400 Subject: [PATCH] Add example of sorting for built-in node types (#155) Closes #141 --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2ec7363..8d664c4 100644 --- a/README.md +++ b/README.md @@ -264,10 +264,17 @@ import MyApp from './MyApp'; ##### 4. Group type imports separately from values -If you're using Flow or TypeScript, you might want to separate out your type imports from imports of values. And to be especially fancy, you can even group 3rd party types together, and your own local type imports separately: +If you're using Flow or TypeScript, you might want to separate out your type imports from imports of values. And to be especially fancy, you can even group built-in types (if you're using `node:` imports), 3rd party types, and your own local type imports separately: ```json -"importOrder": ["", "^[.]", "", "^[.]"] +"importOrder": [ + "^(node:)", + "", + "^[.]", + "", + "", + "^[.]" +] ``` e.g.: