Skip to content

Commit 78782f9

Browse files
authoredOct 17, 2020
fix: update docs on supported config file extensions (#917)
* allow .cjs files for ESModule based packages * trailing comma * adds all supported file extensions to README * a bit clearer on supported files
1 parent 36e7e58 commit 78782f9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed
 

‎README.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,11 @@ Options:
9797
Starting with v3.1 you can now use different ways of configuring it:
9898
9999
- `lint-staged` object in your `package.json`
100-
- `.lintstagedrc` file in JSON or YML format
101-
- `lint-staged.config.js` file in JS format
100+
- `.lintstagedrc` file in JSON or YML format, or you can be explicit with the file extension:
101+
- `.lintstagedrc.json`
102+
- `.lintstagedrc.yaml`
103+
- `.lintstagedrc.yml`
104+
- `lint-staged.config.js`, `.lintstagedrc.js`, or `.lintstagedrc.cjs` file in JS format
102105
- Pass a configuration file using the `--config` or `-c` flag
103106
104107
See [cosmiconfig](https://github.com/davidtheclark/cosmiconfig) for more details on what formats are supported.

0 commit comments

Comments
 (0)
Please sign in to comment.