View Source Igniter.Project.Formatter (igniter v0.4.8)

Codemods and utilities for interacting with .formatter.exs files

Summary

Functions

Adds a new plugin to the list of plugins in the root .formatter.exs

Adds a new dep to the list of imported deps in the root .formatter.exs

REmoves a plugin to the list of plugins in the root .formatter.exs

Removes an imported dep from the list of imported deps in the root .formatter.exs

Functions

add_formatter_plugin(igniter, plugin)

@spec add_formatter_plugin(Igniter.t(), plugin :: module()) :: Igniter.t()

Adds a new plugin to the list of plugins in the root .formatter.exs

import_dep(igniter, dep)

@spec import_dep(Igniter.t(), dep :: atom()) :: Igniter.t()

Adds a new dep to the list of imported deps in the root .formatter.exs

remove_formatter_plugin(igniter, plugin)

@spec remove_formatter_plugin(Igniter.t(), plugin :: module()) :: Igniter.t()

REmoves a plugin to the list of plugins in the root .formatter.exs

remove_imported_dep(igniter, dep)

@spec remove_imported_dep(Igniter.t(), dep :: atom()) :: Igniter.t()

Removes an imported dep from the list of imported deps in the root .formatter.exs