@icebreakers/eslint-config 4.0.10 → 5.0.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/README.md +3 -3
- package/README.zh.md +3 -3
- package/dist/chunk-BrWF7lJc.cjs +64 -0
- package/dist/{chunk-o8xxKEmq.js → chunk-DwxmvJxx.js} +11 -2
- package/dist/dist-Br-vKI2G.cjs +103680 -0
- package/dist/dist-Dk5MjvLV.js +103673 -0
- package/dist/index.cjs +9 -53
- package/dist/index.d.cts +202 -1618
- package/dist/index.d.ts +202 -1618
- package/dist/index.js +4 -16
- package/dist/jiti-DflBE4I9.js +5460 -0
- package/dist/jiti-rvW1Nngq.cjs +5460 -0
- package/dist/lib-COpZ8-nd.js +6389 -0
- package/dist/lib-DS3f4hEx.js +129837 -0
- package/dist/lib-gbm6XY5m.cjs +129841 -0
- package/dist/lib-ivfmw_L0.cjs +6394 -0
- package/dist/modern-BlDFWU8k.cjs +1143 -0
- package/dist/modern-DnYnDvqZ.js +1141 -0
- package/dist/src-ByvzhpaY.js +1173 -0
- package/dist/src-seAD4Fwt.cjs +1175 -0
- package/dist/stylelint.cjs +1 -1
- package/package.json +11 -15
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as __reExport, o as __toESM, r as __exportAll } from "./chunk-DwxmvJxx.js";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import process from "node:process";
|
|
@@ -260,10 +260,10 @@ function resolveMdxPresets(isEnabled) {
|
|
|
260
260
|
function resolveAccessibilityPresets(isEnabled, vueOption, reactOption) {
|
|
261
261
|
if (!isEnabled) return [];
|
|
262
262
|
const presets = [];
|
|
263
|
-
if (vueOption && hasAllPackages(VUE_A11Y_PACKAGES)) presets.push((0, antfu_exports.interopDefault)(import("
|
|
263
|
+
if (vueOption && hasAllPackages(VUE_A11Y_PACKAGES)) presets.push((0, antfu_exports.interopDefault)(import("./dist-Dk5MjvLV.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1))).then((pluginVueA11y) => {
|
|
264
264
|
return pluginVueA11y.configs["flat/recommended"];
|
|
265
265
|
}));
|
|
266
|
-
if (reactOption && hasAllPackages(REACT_A11Y_PACKAGES)) presets.push((0, antfu_exports.interopDefault)(import("
|
|
266
|
+
if (reactOption && hasAllPackages(REACT_A11Y_PACKAGES)) presets.push((0, antfu_exports.interopDefault)(import("./lib-DS3f4hEx.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1))).then((jsxA11y) => {
|
|
267
267
|
return jsxA11y.flatConfigs.recommended;
|
|
268
268
|
}));
|
|
269
269
|
return presets;
|
|
@@ -278,7 +278,7 @@ function resolveNestPresets(isEnabled) {
|
|
|
278
278
|
function resolveQueryPresets(isEnabled) {
|
|
279
279
|
if (!isEnabled) return [];
|
|
280
280
|
if (!hasAllPackages(QUERY_PACKAGES)) return [];
|
|
281
|
-
return [(0, antfu_exports.interopDefault)(import("
|
|
281
|
+
return [(0, antfu_exports.interopDefault)(import("./modern-DnYnDvqZ.js")).then((pluginQuery) => pluginQuery.configs["flat/recommended"])];
|
|
282
282
|
}
|
|
283
283
|
//#endregion
|
|
284
284
|
//#region ../../node_modules/.pnpm/defu@6.1.7/node_modules/defu/dist/defu.mjs
|
|
@@ -308,18 +308,6 @@ function createDefu(merger) {
|
|
|
308
308
|
return (...arguments_) => arguments_.reduce((p, c) => _defu(p, c, "", merger), {});
|
|
309
309
|
}
|
|
310
310
|
const defu = createDefu();
|
|
311
|
-
createDefu((object, key, currentValue) => {
|
|
312
|
-
if (object[key] !== void 0 && typeof currentValue === "function") {
|
|
313
|
-
object[key] = currentValue(object[key]);
|
|
314
|
-
return true;
|
|
315
|
-
}
|
|
316
|
-
});
|
|
317
|
-
createDefu((object, key, currentValue) => {
|
|
318
|
-
if (Array.isArray(object[key]) && typeof currentValue === "function") {
|
|
319
|
-
object[key] = currentValue(object[key]);
|
|
320
|
-
return true;
|
|
321
|
-
}
|
|
322
|
-
});
|
|
323
311
|
//#endregion
|
|
324
312
|
//#region src/options.ts
|
|
325
313
|
const BASE_DEFAULTS = {
|