@pengzhanbo/eslint-config 1.5.2 → 1.5.3
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.cjs +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1817,12 +1817,12 @@ function eslintFlatConfig(options = {}, ...userConfigs) {
|
|
|
1817
1817
|
|
|
1818
1818
|
// src/createConfig.ts
|
|
1819
1819
|
function createConfig(preset) {
|
|
1820
|
-
return function
|
|
1820
|
+
return function(options = {}, ...userConfigs) {
|
|
1821
1821
|
const userPreset = options.preset || [];
|
|
1822
1822
|
const presetList = Array.isArray(preset) ? preset : [preset];
|
|
1823
1823
|
presetList.push(...userPreset);
|
|
1824
1824
|
options.preset = presetList;
|
|
1825
|
-
return
|
|
1825
|
+
return eslintFlatConfig(options, ...userConfigs);
|
|
1826
1826
|
};
|
|
1827
1827
|
}
|
|
1828
1828
|
|
package/dist/index.js
CHANGED
|
@@ -1718,12 +1718,12 @@ function eslintFlatConfig(options = {}, ...userConfigs) {
|
|
|
1718
1718
|
|
|
1719
1719
|
// src/createConfig.ts
|
|
1720
1720
|
function createConfig(preset) {
|
|
1721
|
-
return function
|
|
1721
|
+
return function(options = {}, ...userConfigs) {
|
|
1722
1722
|
const userPreset = options.preset || [];
|
|
1723
1723
|
const presetList = Array.isArray(preset) ? preset : [preset];
|
|
1724
1724
|
presetList.push(...userPreset);
|
|
1725
1725
|
options.preset = presetList;
|
|
1726
|
-
return
|
|
1726
|
+
return eslintFlatConfig(options, ...userConfigs);
|
|
1727
1727
|
};
|
|
1728
1728
|
}
|
|
1729
1729
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pengzhanbo/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.5.
|
|
4
|
+
"version": "1.5.3",
|
|
5
5
|
"author": "pengzhanbo <q942450674@outlook.com> (https://github/pengzhanbo/)",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/pengzhanbo/configs#readme",
|