Update README.md (#2690)

* docs(readme): fix option typo

* docs(readme): fix parameter representation
master
Ika 2017-08-29 14:05:59 +08:00 committed by Lucas Azzola
parent 987b931215
commit a44ef1fe8b
1 changed files with 2 additions and 2 deletions

View File

@ -409,7 +409,7 @@ prettier.formatWithCursor(" 1", { cursorOffset: 2 });
// -> { formatted: '1;\n', cursorOffset: 1 }
```
#### `prettier.resolveConfig([filePath] [, options])`
#### `prettier.resolveConfig([filePath [, options]])`
`resolveConfig` can be used to resolve configuration for a given source file.
The function optionally accepts an input file path as an argument, which defaults to the current working directory.
@ -419,7 +419,7 @@ A promise is returned which will resolve to:
The promise will be rejected if there was an error parsing the configuration file.
If `options.withCache` is `false`, all caching will be bypassed.
If `options.useCache` is `false`, all caching will be bypassed.
```js
const text = fs.readFileSync(filePath, "utf8");