lint-staged 13.0.3 → 13.1.0

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.
Files changed (2) hide show
  1. package/README.md +20 -0
  2. package/package.json +16 -15
package/README.md CHANGED
@@ -613,6 +613,24 @@ See more on [this blog post](https://medium.com/@tomchentw/imagemin-lint-staged-
613
613
 
614
614
  ## Frequently Asked Questions
615
615
 
616
+ ### The output of commit hook looks weird (no colors, duplicate lines, …)
617
+
618
+ <details>
619
+ <summary>Click to expand</summary>
620
+
621
+ Git 2.36.0 introduced a change to hooks where they were no longer run in the original TTY.
622
+ This was fixed in 2.37.0:
623
+
624
+ https://raw.githubusercontent.com/git/git/master/Documentation/RelNotes/2.37.0.txt
625
+
626
+ > - In Git 2.36 we revamped the way how hooks are invoked. One change
627
+ > that is end-user visible is that the output of a hook is no longer
628
+ > directly connected to the standard output of "git" that spawns the
629
+ > hook, which was noticed post release. This is getting corrected.
630
+ > (merge [a082345372](https://github.com/git/git/commit/a082345372) ab/hooks-regression-fix later to maint).
631
+
632
+ </details>
633
+
616
634
  ### Can I use `lint-staged` via node?
617
635
 
618
636
  <details>
@@ -743,6 +761,8 @@ export default {
743
761
  }
744
762
  ```
745
763
 
764
+ To support backwards-compatibility, monorepo features require multiple _lint-staged_ configuration files present in the git repo. If you still want to run _lint-staged_ in only one of the packages in a monorepo, you can either add an "empty" _lint-staged_ configuration to the root of the repo (so that there's two configs in total), or alternatively run _lint-staged_ with the `--cwd` option pointing to your package directory (for example, `lint-staged --cwd packages/frontend`).
765
+
746
766
  </details>
747
767
 
748
768
  ### Can I lint files outside of the current project folder?
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lint-staged",
3
- "version": "13.0.3",
3
+ "version": "13.1.0",
4
4
  "description": "Lint files staged by git",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/okonet/lint-staged",
@@ -20,6 +20,7 @@
20
20
  "bin": "./bin/lint-staged.js",
21
21
  "exports": {
22
22
  ".": "./lib/index.js",
23
+ "./bin": "./bin/lint-staged.js",
23
24
  "./package.json": "./package.json"
24
25
  },
25
26
  "files": [
@@ -33,36 +34,36 @@
33
34
  },
34
35
  "dependencies": {
35
36
  "cli-truncate": "^3.1.0",
36
- "colorette": "^2.0.17",
37
- "commander": "^9.3.0",
37
+ "colorette": "^2.0.19",
38
+ "commander": "^9.4.1",
38
39
  "debug": "^4.3.4",
39
40
  "execa": "^6.1.0",
40
- "lilconfig": "2.0.5",
41
- "listr2": "^4.0.5",
41
+ "lilconfig": "2.0.6",
42
+ "listr2": "^5.0.5",
42
43
  "micromatch": "^4.0.5",
43
44
  "normalize-path": "^3.0.0",
44
45
  "object-inspect": "^1.12.2",
45
46
  "pidtree": "^0.6.0",
46
47
  "string-argv": "^0.3.1",
47
- "yaml": "^2.1.1"
48
+ "yaml": "^2.1.3"
48
49
  },
49
50
  "devDependencies": {
50
- "@babel/core": "^7.18.2",
51
- "@babel/eslint-parser": "^7.18.2",
52
- "@babel/preset-env": "^7.18.2",
53
- "babel-jest": "^28.1.1",
51
+ "@babel/core": "^7.20.2",
52
+ "@babel/eslint-parser": "^7.19.1",
53
+ "@babel/preset-env": "^7.20.2",
54
+ "babel-jest": "^29.3.1",
54
55
  "babel-plugin-transform-imports": "2.0.0",
55
56
  "consolemock": "^1.1.0",
56
- "eslint": "^8.17.0",
57
+ "eslint": "^8.28.0",
57
58
  "eslint-config-prettier": "^8.5.0",
58
59
  "eslint-plugin-import": "^2.26.0",
59
60
  "eslint-plugin-node": "^11.1.0",
60
- "eslint-plugin-prettier": "^4.0.0",
61
+ "eslint-plugin-prettier": "^4.2.1",
61
62
  "fs-extra": "^10.1.0",
62
- "husky": "^8.0.1",
63
- "jest": "^28.1.1",
63
+ "husky": "^8.0.2",
64
+ "jest": "^29.3.1",
64
65
  "jest-snapshot-serializer-ansi": "^1.0.0",
65
- "prettier": "^2.6.2"
66
+ "prettier": "^2.7.1"
66
67
  },
67
68
  "keywords": [
68
69
  "lint",