lint-staged 10.4.1 → 10.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -97,8 +97,11 @@ Options:
|
|
|
97
97
|
Starting with v3.1 you can now use different ways of configuring it:
|
|
98
98
|
|
|
99
99
|
- `lint-staged` object in your `package.json`
|
|
100
|
-
- `.lintstagedrc` file in JSON or YML format
|
|
101
|
-
-
|
|
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
|
|
102
105
|
- Pass a configuration file using the `--config` or `-c` flag
|
|
103
106
|
|
|
104
107
|
See [cosmiconfig](https://github.com/davidtheclark/cosmiconfig) for more details on what formats are supported.
|