lint-staged 13.1.1 → 13.1.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 CHANGED
@@ -274,7 +274,7 @@ going to execute `eslint` and if it exits with `0` code, it will execute `pretti
274
274
 
275
275
  ## Using JS configuration files
276
276
 
277
- Writing the configuration file in JavaScript is the most powerful way to configure lint-staged (`lint-staged.config.js`, [similar](https://github.com/okonet/lint-staged/README.md#configuration), or passed via `--config`). From the configuration file, you can export either a single function or an object.
277
+ Writing the configuration file in JavaScript is the most powerful way to configure lint-staged (`lint-staged.config.js`, [similar](https://github.com/okonet/lint-staged#configuration), or passed via `--config`). From the configuration file, you can export either a single function or an object.
278
278
 
279
279
  If the `exports` value is a function, it will receive an array of all staged filenames. You can then build your own matchers for the files and return a command string or an array of command strings. These strings are considered complete and should include the filename arguments, if wanted.
280
280
 
@@ -358,7 +358,7 @@ export default {
358
358
  <details>
359
359
  <summary>Click to expand</summary>
360
360
 
361
- It's better to use the [function-based configuration (seen above)](https://github.com/okonet/lint-staged/README.md#example-export-a-function-to-build-your-own-matchers), if your use case is this.
361
+ It's better to use the [function-based configuration (seen above)](https://github.com/okonet/lint-staged#example-export-a-function-to-build-your-own-matchers), if your use case is this.
362
362
 
363
363
  ```js
364
364
  // lint-staged.config.js
package/lib/index.js CHANGED
@@ -75,7 +75,8 @@ const lintStaged = async (
75
75
  quiet = false,
76
76
  relative = false,
77
77
  shell = false,
78
- stash = true,
78
+ // Stashing should be disabled by default when the `diff` option is used
79
+ stash = diff === undefined,
79
80
  verbose = false,
80
81
  } = {},
81
82
  logger = console
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lint-staged",
3
- "version": "13.1.1",
3
+ "version": "13.1.2",
4
4
  "description": "Lint files staged by git",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/okonet/lint-staged",