Skip to content

Commit

Permalink
Export formatter configuration (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
whatyouhide committed Feb 28, 2019
1 parent d5e1c43 commit a08cb7c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
13 changes: 12 additions & 1 deletion .formatter.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
locals_without_parens = [
all: :*,
check: 1,
check: 2,
property: 1,
property: 2
]

[
inputs: [
".formatter.exs",
"mix.exs",
"lib/**/*.ex",
"{test,examples}/**/*.exs",
"{test,examples}/**/*.exs"
],
locals_without_parens: locals_without_parens,
export: [locals_without_parens: locals_without_parens]
]
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@ defp deps() do
end
```

and run `mix deps.get`. StreamData is usually added only to the `:test` environment since it's used in tests and test data generation.
and run `mix deps.get`. StreamData is usually added only to the `:test` environment since it's used in tests and test data generation. To also import StreamData's formatter configuration, add `:stream_data` to your `.formatter.exs`:

```elixir
[
import_deps: [:stream_data]
]
```

## Usage

Expand Down

0 comments on commit a08cb7c

Please sign in to comment.