Skip to content

Commit

Permalink
Docs: Explain use of --ext option in ESLint v7 (#146)
Browse files Browse the repository at this point in the history
* Docs: Explain use of --ext option in ESLint v7

* Docs: Link additional lint targets RFC

We don't have this in the docs on eslint.org yet, so the RFC seemed like
the next best thing.
  • Loading branch information
btmills authored Mar 17, 2020
1 parent 0d4dbe8 commit 7423610
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

An [ESLint](http://eslint.org/) plugin to lint JavaScript in Markdown.

Supported extensions are `.markdown`, `.mdown`, `.mkdn`, and `.md`.

## Usage

Install the plugin:
Expand All @@ -33,7 +31,9 @@ Add it to your `.eslintrc` and enable the processor on Markdown files:
}
```

Run ESLint on `.md` files:
If you use ESLint v7, it [automatically lints file extensions from config files](https://github.com/eslint/rfcs/blob/0253e3a95511c65d622eaa387eb73f824249b467/designs/2019-additional-lint-targets/README.md), so you don't have to use the `--ext` option.

If you use ESLint v6, use the `--ext` option to run ESLint on `.md` files:

```sh
eslint --ext js,md .
Expand Down

0 comments on commit 7423610

Please sign in to comment.