elixir-alphabetize

Alphabetizes alias, require, use at the top of an elixir file

mkaplan9

537

0

0.3.0

MIT

GitHub

elixir-alphabetize

Alphabetizes alias, require, use, and import statements at the top of an elixir file

Packages -> elixir-alphabetize -> Beautify

Example

defmodule MyApp.MyController do
  import MyThing
  use MyOtherThing
  alias MyApp.User
  alias MyApp.Organization
  @moduledoc """
  """

becomes

defmodule MyApp.MyController do
  alias MyApp.Organization
  alias MyApp.User
  import MyThing
  use MyOtherThing
  @moduledoc """
  """