@icebreakers/eslint-config 4.0.9 → 4.0.11

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 CHANGED
@@ -1,47 +1,16 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- //#region \0rolldown/runtime.js
3
- var __create = Object.create;
4
- var __defProp = Object.defineProperty;
5
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
- var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getProtoOf = Object.getPrototypeOf;
8
- var __hasOwnProp = Object.prototype.hasOwnProperty;
9
- var __exportAll = (all, no_symbols) => {
10
- let target = {};
11
- for (var name in all) __defProp(target, name, {
12
- get: all[name],
13
- enumerable: true
14
- });
15
- if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
16
- return target;
17
- };
18
- var __copyProps = (to, from, except, desc) => {
19
- if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
20
- key = keys[i];
21
- if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
22
- get: ((k) => from[k]).bind(null, key),
23
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
24
- });
25
- }
26
- return to;
27
- };
28
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
29
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
30
- value: mod,
31
- enumerable: true
32
- }) : target, mod));
33
- //#endregion
2
+ const require_chunk = require("./chunk-BrWF7lJc.cjs");
34
3
  let node_path = require("node:path");
35
- node_path = __toESM(node_path, 1);
4
+ node_path = require_chunk.__toESM(node_path, 1);
36
5
  let node_process = require("node:process");
37
- node_process = __toESM(node_process, 1);
6
+ node_process = require_chunk.__toESM(node_process, 1);
38
7
  let node_fs = require("node:fs");
39
- node_fs = __toESM(node_fs, 1);
8
+ node_fs = require_chunk.__toESM(node_fs, 1);
40
9
  let node_module = require("node:module");
41
10
  let node_url = require("node:url");
42
11
  //#region src/antfu.ts
43
- var antfu_exports = /* @__PURE__ */ __exportAll({});
44
- __reExport(antfu_exports, require("@antfu/eslint-config"));
12
+ var antfu_exports = /* @__PURE__ */ require_chunk.__exportAll({});
13
+ require_chunk.__reExport(antfu_exports, require("@antfu/eslint-config"));
45
14
  //#endregion
46
15
  //#region src/defaults.ts
47
16
  const INLINE_ELEMENTS = [
@@ -294,10 +263,10 @@ function resolveMdxPresets(isEnabled) {
294
263
  function resolveAccessibilityPresets(isEnabled, vueOption, reactOption) {
295
264
  if (!isEnabled) return [];
296
265
  const presets = [];
297
- if (vueOption && hasAllPackages(VUE_A11Y_PACKAGES)) presets.push((0, antfu_exports.interopDefault)(import("eslint-plugin-vuejs-accessibility")).then((pluginVueA11y) => {
266
+ if (vueOption && hasAllPackages(VUE_A11Y_PACKAGES)) presets.push((0, antfu_exports.interopDefault)(Promise.resolve().then(() => /* @__PURE__ */ require_chunk.__toESM(require("./dist-D2WUqnUR.cjs").default, 1))).then((pluginVueA11y) => {
298
267
  return pluginVueA11y.configs["flat/recommended"];
299
268
  }));
300
- if (reactOption && hasAllPackages(REACT_A11Y_PACKAGES)) presets.push((0, antfu_exports.interopDefault)(import("eslint-plugin-jsx-a11y")).then((jsxA11y) => {
269
+ if (reactOption && hasAllPackages(REACT_A11Y_PACKAGES)) presets.push((0, antfu_exports.interopDefault)(Promise.resolve().then(() => /* @__PURE__ */ require_chunk.__toESM(require("./lib-VdWhDy2o.cjs").default, 1))).then((jsxA11y) => {
301
270
  return jsxA11y.flatConfigs.recommended;
302
271
  }));
303
272
  return presets;
@@ -312,7 +281,7 @@ function resolveNestPresets(isEnabled) {
312
281
  function resolveQueryPresets(isEnabled) {
313
282
  if (!isEnabled) return [];
314
283
  if (!hasAllPackages(QUERY_PACKAGES)) return [];
315
- return [(0, antfu_exports.interopDefault)(import("@tanstack/eslint-plugin-query")).then((pluginQuery) => pluginQuery.configs["flat/recommended"])];
284
+ return [(0, antfu_exports.interopDefault)(Promise.resolve().then(() => require("./modern-D06QebMM.cjs"))).then((pluginQuery) => pluginQuery.configs["flat/recommended"])];
316
285
  }
317
286
  //#endregion
318
287
  //#region ../../node_modules/.pnpm/defu@6.1.7/node_modules/defu/dist/defu.mjs
@@ -779,7 +748,6 @@ function icebreakerLegacy(options = {}, ...userConfigs) {
779
748
  return applyOxfmtFormatterOverrides((0, antfu_exports.antfu)(toAntfuOptions(normalized), ...presets, ...userConfigs.map(normalizeUserConfig)), normalized.formatters);
780
749
  }
781
750
  //#endregion
782
- exports.__toESM = __toESM;
783
751
  exports.getPresets = getPresets;
784
752
  exports.icebreaker = icebreaker;
785
753
  exports.icebreakerLegacy = icebreakerLegacy;