From 86d2d2e6a0388412c6b1c20fccdbf3b8d0c7fff9 Mon Sep 17 00:00:00 2001 From: y86 Date: Wed, 27 Mar 2024 13:44:38 -0300 Subject: [PATCH] Add rule for sorting aliases and imports --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 410a421..1a7e51b 100644 --- a/README.md +++ b/README.md @@ -298,7 +298,7 @@ The following section are automatically applied by the code formatter in Elixir ### Modules * - Use a consistent structure when calling `use`/`import`/`alias`/`require`: call them in this order and group multiple calls to each of them. + Use a consistent structure when calling `use`/`import`/`alias`/`require`: call them in this order, group multiple calls to each of them and sort them alphabetically. [[link](#module-layout)] ```elixir @@ -307,8 +307,8 @@ The following section are automatically applied by the code formatter in Elixir import Bitwise import Kernel, except: [length: 1] - alias Mix.Utils alias MapSet, as: Set + alias Mix.Utils require Logger ```