Skip to content

Commit

Permalink
update README to include info about presets
Browse files Browse the repository at this point in the history
  • Loading branch information
millermedeiros committed Oct 30, 2016
1 parent 4a4a3bb commit de57013
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,28 @@ Since esformatter is available as a command-line tool, it can be used in any edi
See [doc/config.md](./doc/config.md).


## Presets

Presets are reusable config files that can `require` other presets/plugins and
override configs.

```js
{
// presets are used as "base settings"
"extends": [
"preset:foobar", // load "esformatter-preset-foobar" from "./node_modules"
"./lorem_ipsum.json" // load relative config file
],

// you can still override any setting from the preset if needed
"indent": {
"value": " "
}
}
```

For more info see [presets.md](./doc/presets.md)

## Pipe other CLI tools

Since we don't expect everyone to write plugins that only works with
Expand Down

0 comments on commit de57013

Please sign in to comment.