@pengzhanbo/eslint-config-react 1.30.0 → 1.32.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.
- package/dist/index.d.ts +5 -3
- package/dist/index.js +13 -12
- package/package.json +10 -10
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { EslintConfigOptions,
|
|
2
|
-
export * from
|
|
1
|
+
import { EslintConfigOptions, EslintConfigReturn, UserConfig } from "@pengzhanbo/eslint-config";
|
|
2
|
+
export * from "@pengzhanbo/eslint-config";
|
|
3
3
|
|
|
4
|
+
//#region src/index.d.ts
|
|
4
5
|
declare function reactEslintFlatConfig(options: EslintConfigOptions, ...userConfigs: UserConfig[]): EslintConfigReturn;
|
|
5
6
|
|
|
6
|
-
|
|
7
|
+
//#endregion
|
|
8
|
+
export { reactEslintFlatConfig as default, reactEslintFlatConfig };
|
package/dist/index.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export * from "@pengzhanbo/eslint-config"
|
|
1
|
+
import { eslintFlatConfig } from "@pengzhanbo/eslint-config";
|
|
2
|
+
|
|
3
|
+
export * from "@pengzhanbo/eslint-config"
|
|
4
|
+
|
|
5
|
+
//#region src/index.ts
|
|
4
6
|
function reactEslintFlatConfig(options, ...userConfigs) {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
return eslintFlatConfig({
|
|
8
|
+
react: true,
|
|
9
|
+
...options
|
|
10
|
+
}, ...userConfigs);
|
|
9
11
|
}
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
};
|
|
12
|
+
var src_default = reactEslintFlatConfig;
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
export { src_default as default, reactEslintFlatConfig };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pengzhanbo/eslint-config-react",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.32.0",
|
|
5
5
|
"author": "pengzhanbo <q942450674@outlook.com> (https://github/pengzhanbo/)",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/pengzhanbo/configs#readme",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
],
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"@prettier/plugin-xml": "^3.4.1",
|
|
33
|
-
"@unocss/eslint-plugin": "^66.
|
|
34
|
-
"eslint": "^9.
|
|
33
|
+
"@unocss/eslint-plugin": "^66.1.1",
|
|
34
|
+
"eslint": "^9.26.0",
|
|
35
35
|
"eslint-plugin-format": "^1.0.1",
|
|
36
36
|
"eslint-plugin-tailwindcss": "^3.18.0"
|
|
37
37
|
},
|
|
@@ -50,19 +50,19 @@
|
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@eslint-react/eslint-plugin": "^1.
|
|
53
|
+
"@eslint-react/eslint-plugin": "^1.49.0",
|
|
54
54
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
55
|
-
"eslint-plugin-react-refresh": "^0.4.
|
|
56
|
-
"@pengzhanbo/eslint-config": "1.
|
|
55
|
+
"eslint-plugin-react-refresh": "^0.4.20",
|
|
56
|
+
"@pengzhanbo/eslint-config": "1.32.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@unocss/eslint-plugin": "^66.
|
|
60
|
-
"eslint": "^9.
|
|
59
|
+
"@unocss/eslint-plugin": "^66.1.1",
|
|
60
|
+
"eslint": "^9.26.0",
|
|
61
61
|
"eslint-plugin-format": "^1.0.1",
|
|
62
62
|
"eslint-plugin-tailwindcss": "^3.18.0"
|
|
63
63
|
},
|
|
64
64
|
"scripts": {
|
|
65
|
-
"build": "
|
|
66
|
-
"stub": "
|
|
65
|
+
"build": "tsdown src/index.ts --format esm --clean --dts --shims",
|
|
66
|
+
"stub": "tsdown src/index.ts --format esm"
|
|
67
67
|
}
|
|
68
68
|
}
|