lint-staged 13.0.2 → 13.0.4
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/lib/gitWorkflow.js +11 -1
- package/package.json +15 -15
package/lib/gitWorkflow.js
CHANGED
|
@@ -43,7 +43,7 @@ const processRenames = (files, includeRenameFrom = true) =>
|
|
|
43
43
|
return flattened
|
|
44
44
|
}, [])
|
|
45
45
|
|
|
46
|
-
const STASH = 'lint-staged automatic backup'
|
|
46
|
+
export const STASH = 'lint-staged automatic backup'
|
|
47
47
|
|
|
48
48
|
const PATCH_UNSTAGED = 'lint-staged_unstaged.patch'
|
|
49
49
|
|
|
@@ -103,6 +103,16 @@ export class GitWorkflow {
|
|
|
103
103
|
ctx.errors.add(GetBackupStashError)
|
|
104
104
|
throw new Error('lint-staged automatic backup is missing!')
|
|
105
105
|
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* https://github.com/okonet/lint-staged/issues/1121
|
|
109
|
+
* Detect MSYS in login shell mode and escape braces
|
|
110
|
+
* to prevent interpolation
|
|
111
|
+
*/
|
|
112
|
+
if (!!process.env.MSYSTEM && !!process.env.LOGINSHELL) {
|
|
113
|
+
return `refs/stash@\\{${index}\\}`
|
|
114
|
+
}
|
|
115
|
+
|
|
106
116
|
return `refs/stash@{${index}}`
|
|
107
117
|
}
|
|
108
118
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lint-staged",
|
|
3
|
-
"version": "13.0.
|
|
3
|
+
"version": "13.0.4",
|
|
4
4
|
"description": "Lint files staged by git",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "https://github.com/okonet/lint-staged",
|
|
@@ -33,36 +33,36 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"cli-truncate": "^3.1.0",
|
|
36
|
-
"colorette": "^2.0.
|
|
37
|
-
"commander": "^9.
|
|
36
|
+
"colorette": "^2.0.19",
|
|
37
|
+
"commander": "^9.4.1",
|
|
38
38
|
"debug": "^4.3.4",
|
|
39
39
|
"execa": "^6.1.0",
|
|
40
|
-
"lilconfig": "2.0.
|
|
41
|
-
"listr2": "^
|
|
40
|
+
"lilconfig": "2.0.6",
|
|
41
|
+
"listr2": "^5.0.5",
|
|
42
42
|
"micromatch": "^4.0.5",
|
|
43
43
|
"normalize-path": "^3.0.0",
|
|
44
44
|
"object-inspect": "^1.12.2",
|
|
45
45
|
"pidtree": "^0.6.0",
|
|
46
46
|
"string-argv": "^0.3.1",
|
|
47
|
-
"yaml": "^2.1.
|
|
47
|
+
"yaml": "^2.1.3"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@babel/core": "^7.
|
|
51
|
-
"@babel/eslint-parser": "^7.
|
|
52
|
-
"@babel/preset-env": "^7.
|
|
53
|
-
"babel-jest": "^
|
|
50
|
+
"@babel/core": "^7.20.2",
|
|
51
|
+
"@babel/eslint-parser": "^7.19.1",
|
|
52
|
+
"@babel/preset-env": "^7.20.2",
|
|
53
|
+
"babel-jest": "^29.3.1",
|
|
54
54
|
"babel-plugin-transform-imports": "2.0.0",
|
|
55
55
|
"consolemock": "^1.1.0",
|
|
56
|
-
"eslint": "^8.
|
|
56
|
+
"eslint": "^8.28.0",
|
|
57
57
|
"eslint-config-prettier": "^8.5.0",
|
|
58
58
|
"eslint-plugin-import": "^2.26.0",
|
|
59
59
|
"eslint-plugin-node": "^11.1.0",
|
|
60
|
-
"eslint-plugin-prettier": "^4.
|
|
60
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
61
61
|
"fs-extra": "^10.1.0",
|
|
62
|
-
"husky": "^8.0.
|
|
63
|
-
"jest": "^
|
|
62
|
+
"husky": "^8.0.2",
|
|
63
|
+
"jest": "^29.3.1",
|
|
64
64
|
"jest-snapshot-serializer-ansi": "^1.0.0",
|
|
65
|
-
"prettier": "^2.
|
|
65
|
+
"prettier": "^2.7.1"
|
|
66
66
|
},
|
|
67
67
|
"keywords": [
|
|
68
68
|
"lint",
|