@cloudpss/lint-staged-config 3.0.24 → 3.0.26
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/index.d.ts +3 -3
- package/index.js +2 -2
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export type {
|
|
1
|
+
import type { Configuration, GenerateTask } from 'lint-staged';
|
|
2
|
+
export type { Configuration };
|
|
3
3
|
|
|
4
|
-
const config: { '*':
|
|
4
|
+
const config: { '*': GenerateTask };
|
|
5
5
|
export default config;
|
package/index.js
CHANGED
|
@@ -43,8 +43,8 @@ function makeCommands(files, ...commands) {
|
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* 包装处理函数
|
|
46
|
-
* @param {(
|
|
47
|
-
* @returns {(
|
|
46
|
+
* @param {import('lint-staged').GenerateTask} impl 处理函数
|
|
47
|
+
* @returns {import('lint-staged').GenerateTask} 包装后的处理函数
|
|
48
48
|
*/
|
|
49
49
|
function handler(impl) {
|
|
50
50
|
return async (files) => {
|
package/package.json
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"homepage": "https://cloudpss.net/",
|
|
5
5
|
"repository": "https://codeup.aliyun.com/cloudpss/code-quality.git",
|
|
6
|
-
"version": "3.0.
|
|
6
|
+
"version": "3.0.26",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "./index.js",
|
|
9
9
|
"exports": "./index.js",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"eslint": "^9.
|
|
12
|
-
"lint-staged": "^16.1.
|
|
11
|
+
"eslint": "^9.34.0",
|
|
12
|
+
"lint-staged": "^16.1.5",
|
|
13
13
|
"prettier": "^3.6.2"
|
|
14
14
|
}
|
|
15
15
|
}
|