Un-comment config file documentation (#2669)
This commit is contained in:
1 parent
571d92c5f7
commit
db4d7ac1db
1 file changed
+1
-8
@@ -48,12 +48,10 @@ conforms to a consistent style. (See this [blog post](http://jlongster.com/A-Pre
|
||||
+ [Range](#range)
|
||||
+ [Parser](#parser)
|
||||
+ [Filepath](#filepath)
|
||||
<!--
|
||||
* [Configuration File](#configuration-file)
|
||||
+ [Basic Configuration](#basic-configuration)
|
||||
+ [Configuration Overrides](#configuration-overrides)
|
||||
+ [Configuration Schema](#configuration-schema)
|
||||
-->
|
||||
* [Editor Integration](#editor-integration)
|
||||
+ [Atom](#atom)
|
||||
+ [Emacs](#emacs)
|
||||
@@ -247,7 +245,7 @@ Another useful flag is `--list-different` (or `-l`) which prints the filenames o
|
||||
```bash
|
||||
prettier --single-quote --list-different "src/**/*.js"
|
||||
```
|
||||
<!--
|
||||
|
||||
#### `--find-config-path` and `--config`
|
||||
|
||||
If you are repeatedly formatting individual files with `prettier`, you will incur a small performance cost
|
||||
@@ -270,7 +268,6 @@ such as a `config/` directory.
|
||||
|
||||
If you don't have a configuration file, or want to ignore it if it does exist,
|
||||
you can pass `--no-config` instead.
|
||||
-->
|
||||
|
||||
#### `--debug-check`
|
||||
|
||||
@@ -412,7 +409,6 @@ prettier.formatWithCursor(" 1", { cursorOffset: 2 });
|
||||
// -> { formatted: '1;\n', cursorOffset: 1 }
|
||||
```
|
||||
|
||||
<!--
|
||||
#### `prettier.resolveConfig([filePath] [, options])`
|
||||
|
||||
`resolveConfig` can be used to resolve configuration for a given source file.
|
||||
@@ -437,7 +433,6 @@ prettier.resolveConfig(filePath).then(options => {
|
||||
As you repeatedly call `resolveConfig`, the file system structure will be cached for performance.
|
||||
This function will clear the cache. Generally this is only needed for editor integrations that
|
||||
know that the file system has changed since the last format took place.
|
||||
-->
|
||||
|
||||
#### Custom Parser API
|
||||
|
||||
@@ -625,7 +620,6 @@ Default | CLI Override | API Override
|
||||
--------|--------------|-------------
|
||||
None | `--stdin-filepath <string>` | `filepath: "<string>"`
|
||||
|
||||
<!--
|
||||
## Configuration File
|
||||
|
||||
Prettier uses [cosmiconfig](https://github.com/davidtheclark/cosmiconfig) for configuration file support.
|
||||
@@ -708,7 +702,6 @@ For more information on how to use the CLI to locate a file, see the [CLI](#cli)
|
||||
### Configuration Schema
|
||||
|
||||
If you'd like a JSON schema to validate your configuration, one is available here: http://json.schemastore.org/prettierrc.
|
||||
-->
|
||||
|
||||
## Editor Integration
|
||||
|
||||
|
||||
Reference in new issue
Block a user