Skip to content

Commit

Permalink
fix: update docs on supported config file extensions (#917)
Browse files Browse the repository at this point in the history
* allow .cjs files for ESModule based packages

* trailing comma

* adds all supported file extensions to README

* a bit clearer on supported files
  • Loading branch information
ksmithut committed Oct 17, 2020
1 parent 36e7e58 commit 78782f9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Expand Up @@ -97,8 +97,11 @@ Options:
Starting with v3.1 you can now use different ways of configuring it:
- `lint-staged` object in your `package.json`
- `.lintstagedrc` file in JSON or YML format
- `lint-staged.config.js` file in JS format
- `.lintstagedrc` file in JSON or YML format, or you can be explicit with the file extension:
- `.lintstagedrc.json`
- `.lintstagedrc.yaml`
- `.lintstagedrc.yml`
- `lint-staged.config.js`, `.lintstagedrc.js`, or `.lintstagedrc.cjs` file in JS format
- Pass a configuration file using the `--config` or `-c` flag
See [cosmiconfig](https://github.com/davidtheclark/cosmiconfig) for more details on what formats are supported.
Expand Down

0 comments on commit 78782f9

Please sign in to comment.