Skip to content

Commit f0c1f0a

Browse files
committed
update docs on jsfmtrc usage
1 parent a18921c commit f0c1f0a

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,18 @@ Any of the [esformatter](https://github.com/millermedeiros/esformatter) formatti
4848
options can be overwritten via a `.jsfmtrc` file. The file is parsed using
4949
[rc](https://github.com/dominictarr/rc), which accepts either a `json` or `ini` formatted file.
5050

51+
A `.jsfmtrc` will be read if it exists in any of the following directories
52+
* a local .jsfmtrc or the first found looking in ./ ../ ../../ ../../../ etc.
53+
* $HOME/.jsfmtrc
54+
* $HOME/.jsfmt/config
55+
* $HOME/.config/jsfmt
56+
* $HOME/.config/jsfmt/config
57+
* /etc/jsfmtrc
58+
* /etc/jsfmt/config
59+
5160
`jsfmt` will also attempt to pickup and use the configured `indent`
5261
variable from your `.jshintrc` configuration file, if present.
5362

54-
A config file can be manually specified using `--config config.json`.
55-
5663
Rewriting
5764
---
5865

0 commit comments

Comments
 (0)