mirror of
https://github.com/numtide/treefmt.git
synced 2024-08-16 20:30:25 +03:00
deploy: 2e129d929a
This commit is contained in:
parent
d414fac3ec
commit
2d4c777f68
File diff suppressed because one or more lines are too long
@ -694,12 +694,12 @@
|
||||
|
||||
<h1 id="configuration">Configuration</h1>
|
||||
<p><code>treefmt</code> can only be run in the presence of <code>treefmt.toml</code> where files are mapped to specific code formatters.</p>
|
||||
<p>Usually the config file sits in the project root folder. If you're running <code>treefmt</code> in one of the project's folders, then <code>treefmt</code> will look for the config in the parent folders up until the project's root. However, you can place the config anywhere in your project's file tree and specify the path in the the ---config-file flag.</p>
|
||||
<p>Usually the config file sits in the project root folder. If you're running <code>treefmt</code> in one of the project's folders, then <code>treefmt</code> will look for the config in the parent folders up until the project's root. However, you can place the config anywhere in your project's file tree and specify the path in the ---config-file flag.</p>
|
||||
<p>The typical section of <code>treefmt.toml</code> looks like this:</p>
|
||||
<div class="highlight"><pre><span></span><code><a id="__codelineno-0-1" name="__codelineno-0-1" href="#__codelineno-0-1"></a>[formatter.<name>]
|
||||
<a id="__codelineno-0-2" name="__codelineno-0-2" href="#__codelineno-0-2"></a>command = "<formatter-command>"
|
||||
<a id="__codelineno-0-3" name="__codelineno-0-3" href="#__codelineno-0-3"></a>options = ["<formatter-option-1>"...]
|
||||
<a id="__codelineno-0-4" name="__codelineno-0-4" href="#__codelineno-0-4"></a>includes = ["<regular-expression>"]
|
||||
<a id="__codelineno-0-4" name="__codelineno-0-4" href="#__codelineno-0-4"></a>includes = ["<glob-pattern>"...]
|
||||
</code></pre></div>
|
||||
<p>...where name is just an identifier.</p>
|
||||
<div class="highlight"><pre><span></span><code><a id="__codelineno-1-1" name="__codelineno-1-1" href="#__codelineno-1-1"></a>[formatter.elm]
|
||||
|
Loading…
Reference in New Issue
Block a user