@icebreakers/eslint-config 5.0.3 → 5.0.4

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.
@@ -1,5 +1,5 @@
1
- import { a as __require, t as __commonJSMin } from "./chunk-DwxmvJxx.js";
2
- import { t as require_lib$3 } from "./lib-COpZ8-nd.js";
1
+ import { a as __require, t as __commonJSMin } from "./chunk-yCSr5jVb.js";
2
+ import { t as require_lib$3 } from "./lib-Dc92-WCU.js";
3
3
  //#region ../../node_modules/.pnpm/eslint-plugin-vuejs-accessibility@2.5.0_eslint@10.4.0_jiti@2.7.0__globals@17.6.0/node_modules/eslint-plugin-vuejs-accessibility/dist/configs/rules.js
4
4
  var require_rules$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -5838,7 +5838,7 @@ var require_eslint_scope = /* @__PURE__ */ __commonJSMin(((exports) => {
5838
5838
  /** @import * as types from "eslint-scope" */
5839
5839
  const READ = 1;
5840
5840
  const WRITE = 2;
5841
- const RW = READ | WRITE;
5841
+ const RW = 3;
5842
5842
  /**
5843
5843
  * A Reference represents a single occurrence of an identifier in code.
5844
5844
  * @constructor Reference
@@ -14319,7 +14319,7 @@ var require_espree = /* @__PURE__ */ __commonJSMin(((exports) => {
14319
14319
  n.default = e;
14320
14320
  return Object.freeze(n);
14321
14321
  }
14322
- var acorn__namespace = /* @__PURE__ */ _interopNamespaceDefault(acorn);
14322
+ var acorn__namespace = /*#__PURE__*/ _interopNamespaceDefault(acorn);
14323
14323
  /**
14324
14324
  * @fileoverview Translates tokens between Acorn format and Esprima format.
14325
14325
  * @author Nicholas C. Zakas
@@ -15103,15 +15103,15 @@ var require_espree = /* @__PURE__ */ __commonJSMin(((exports) => {
15103
15103
  /** @type {string} */
15104
15104
  const version = "11.2.0";
15105
15105
  const name = "espree";
15106
- const Syntax = /* @__PURE__ */ (function() {
15106
+ const Syntax = /* #__PURE__ */ (function() {
15107
15107
  let key, types = {};
15108
15108
  if (typeof Object.create === "function") types = Object.create(null);
15109
15109
  for (key in eslintVisitorKeys.KEYS) if (Object.hasOwn(eslintVisitorKeys.KEYS, key)) types[key] = key;
15110
15110
  if (typeof Object.freeze === "function") Object.freeze(types);
15111
15111
  return types;
15112
15112
  })();
15113
- const latestEcmaVersion = /* @__PURE__ */ getLatestEcmaVersion();
15114
- const supportedEcmaVersions = /* @__PURE__ */ getSupportedEcmaVersions();
15113
+ const latestEcmaVersion = /* #__PURE__ */ getLatestEcmaVersion();
15114
+ const supportedEcmaVersions = /* #__PURE__ */ getSupportedEcmaVersions();
15115
15115
  Object.defineProperty(exports, "VisitorKeys", {
15116
15116
  enumerable: true,
15117
15117
  get: function() {
@@ -36018,7 +36018,7 @@ var require_no_continue = /* @__PURE__ */ __commonJSMin(((exports, module) => {
36018
36018
  //#region ../../node_modules/.pnpm/@eslint-community+regexpp@4.12.2/node_modules/@eslint-community/regexpp/index.js
36019
36019
  var require_regexpp = /* @__PURE__ */ __commonJSMin(((exports) => {
36020
36020
  Object.defineProperty(exports, "__esModule", { value: true });
36021
- var ast = /* @__PURE__ */ Object.freeze({ __proto__: null });
36021
+ var ast = /*#__PURE__*/ Object.freeze({ __proto__: null });
36022
36022
  const latestEcmaVersion = 2025;
36023
36023
  let largeIdStartRanges = void 0;
36024
36024
  let largeIdContinueRanges = void 0;
@@ -72734,8 +72734,8 @@ var require_ast = /* @__PURE__ */ __commonJSMin(((exports) => {
72734
72734
  const reSpecials = /* @__PURE__ */ new Set("().*{}+?[]^$\\!");
72735
72735
  const regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
72736
72736
  const qmark = "[^/]";
72737
- const star = qmark + "*?";
72738
- const starNoEmpty = qmark + "+?";
72737
+ const star = "[^/]*?";
72738
+ const starNoEmpty = "[^/]+?";
72739
72739
  let ID = 0;
72740
72740
  var AST = class {
72741
72741
  type;
@@ -73080,7 +73080,7 @@ var require_ast = /* @__PURE__ */ __commonJSMin(((exports) => {
73080
73080
  let final = "";
73081
73081
  if (this.type === "!" && this.#emptyExt) final = (this.isStart() && !dot ? startNoDot : "") + starNoEmpty;
73082
73082
  else {
73083
- const close = this.type === "!" ? "))" + (this.isStart() && !dot && !allowDot ? startNoDot : "") + star + ")" : this.type === "@" ? ")" : this.type === "?" ? ")?" : this.type === "+" && bodyDotAllowed ? ")" : this.type === "*" && bodyDotAllowed ? `)?` : `)${this.type}`;
73083
+ const close = this.type === "!" ? "))" + (this.isStart() && !dot && !allowDot ? startNoDot : "") + "[^/]*?)" : this.type === "@" ? ")" : this.type === "?" ? ")?" : this.type === "+" && bodyDotAllowed ? ")" : this.type === "*" && bodyDotAllowed ? `)?` : `)${this.type}`;
73084
73084
  final = start + body + close;
73085
73085
  }
73086
73086
  return [
@@ -76980,8 +76980,8 @@ var require_cjs$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
76980
76980
  n.default = e;
76981
76981
  return Object.freeze(n);
76982
76982
  }
76983
- var posixPath__namespace = /* @__PURE__ */ _interopNamespaceDefault(posixPath);
76984
- var windowsPath__namespace = /* @__PURE__ */ _interopNamespaceDefault(windowsPath);
76983
+ var posixPath__namespace = /*#__PURE__*/ _interopNamespaceDefault(posixPath);
76984
+ var windowsPath__namespace = /*#__PURE__*/ _interopNamespaceDefault(windowsPath);
76985
76985
  /**
76986
76986
  * @fileoverview ConfigSchema
76987
76987
  * @author Nicholas C. Zakas
@@ -88427,7 +88427,7 @@ var require_config_loader = /* @__PURE__ */ __commonJSMin(((exports, module) =>
88427
88427
  * @returns {Promise<{createJiti: Function|undefined, version: string;}>} A promise that fulfills with an object containing the jiti module's createJiti function and version.
88428
88428
  */
88429
88429
  static async loadJiti() {
88430
- const { createJiti } = await import("./jiti-DflBE4I9.js");
88430
+ const { createJiti } = await import("./jiti-CwIriPCr.js");
88431
88431
  return {
88432
88432
  createJiti,
88433
88433
  version: require_package().version
@@ -88849,7 +88849,7 @@ var require_eslint_helpers = /* @__PURE__ */ __commonJSMin(((exports, module) =>
88849
88849
  */
88850
88850
  async function globMatch({ basePath, pattern }) {
88851
88851
  let found = false;
88852
- const { hfs } = await import("./src-ByvzhpaY.js");
88852
+ const { hfs } = await import("./src-DPttw6yg.js");
88853
88853
  const matcher = new Minimatch(normalizeToPosix(path$3.relative(basePath, pattern)), MINIMATCH_OPTIONS);
88854
88854
  const walkSettings = {
88855
88855
  directoryFilter(entry) {
@@ -88896,7 +88896,7 @@ var require_eslint_helpers = /* @__PURE__ */ __commonJSMin(((exports, module) =>
88896
88896
  return new Minimatch(patternToUse, MINIMATCH_OPTIONS);
88897
88897
  });
88898
88898
  const unmatchedPatterns = new Set([...relativeToPatterns.keys()]);
88899
- const { hfs } = await import("./src-ByvzhpaY.js");
88899
+ const { hfs } = await import("./src-DPttw6yg.js");
88900
88900
  const walk = hfs.walk(basePath, {
88901
88901
  async directoryFilter(entry) {
88902
88902
  if (!matchers.some((matcher) => matcher.match(entry.path, true))) return false;
package/dist/index.cjs CHANGED
@@ -1,16 +1,49 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_chunk = require("./chunk-BrWF7lJc.cjs");
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 __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
10
+ var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
11
+ var __exportAll = (all, no_symbols) => {
12
+ let target = {};
13
+ for (var name in all) __defProp(target, name, {
14
+ get: all[name],
15
+ enumerable: true
16
+ });
17
+ if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
18
+ return target;
19
+ };
20
+ var __copyProps = (to, from, except, desc) => {
21
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
22
+ key = keys[i];
23
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
24
+ get: ((k) => from[k]).bind(null, key),
25
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
26
+ });
27
+ }
28
+ return to;
29
+ };
30
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
31
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
32
+ value: mod,
33
+ enumerable: true
34
+ }) : target, mod));
35
+ //#endregion
3
36
  let node_path = require("node:path");
4
- node_path = require_chunk.__toESM(node_path, 1);
37
+ node_path = __toESM(node_path, 1);
5
38
  let node_process = require("node:process");
6
- node_process = require_chunk.__toESM(node_process, 1);
39
+ node_process = __toESM(node_process, 1);
7
40
  let node_fs = require("node:fs");
8
- node_fs = require_chunk.__toESM(node_fs, 1);
41
+ node_fs = __toESM(node_fs, 1);
9
42
  let node_module = require("node:module");
10
43
  let node_url = require("node:url");
11
44
  //#region src/antfu.ts
12
- var antfu_exports = /* @__PURE__ */ require_chunk.__exportAll({});
13
- require_chunk.__reExport(antfu_exports, require("@antfu/eslint-config"));
45
+ var antfu_exports = /* @__PURE__ */ __exportAll({});
46
+ __reExport(antfu_exports, require("@antfu/eslint-config"));
14
47
  //#endregion
15
48
  //#region src/defaults.ts
16
49
  const nestjsTypeScriptRules = {
@@ -54,6 +87,24 @@ function getDefaultVueOptions(opts) {
54
87
  overrides["vue/no-deprecated-slot-attribute"] = "off";
55
88
  overrides["vue/no-useless-template-attributes"] = "off";
56
89
  overrides["vue/singleline-html-element-content-newline"] = "off";
90
+ overrides["vue/no-restricted-props"] = [
91
+ "warn",
92
+ {
93
+ name: "id",
94
+ message: "小程序组件中声明 id prop 可能无法在 properties 中正确取值,请改用其他 prop 名称。",
95
+ suggest: "customId"
96
+ },
97
+ {
98
+ name: "class",
99
+ message: "小程序组件中声明 class prop 可能无法在 properties 中正确取值,请改用其他 prop 名称。",
100
+ suggest: "customClass"
101
+ },
102
+ {
103
+ name: "slot",
104
+ message: "小程序组件中声明 slot prop 可能无法在 properties 中正确取值,请改用其他 prop 名称。",
105
+ suggest: "customSlot"
106
+ }
107
+ ];
57
108
  }
58
109
  return { overrides };
59
110
  }
@@ -222,10 +273,10 @@ function resolveMdxPresets(isEnabled) {
222
273
  function resolveAccessibilityPresets(isEnabled, vueOption, reactOption) {
223
274
  if (!isEnabled) return [];
224
275
  const presets = [];
225
- if (vueOption && hasAllPackages(VUE_A11Y_PACKAGES)) presets.push((0, antfu_exports.interopDefault)(Promise.resolve().then(() => /* @__PURE__ */ require_chunk.__toESM(require("./dist-fjokZKZW.cjs").default, 1))).then((pluginVueA11y) => {
276
+ if (vueOption && hasAllPackages(VUE_A11Y_PACKAGES)) presets.push((0, antfu_exports.interopDefault)(Promise.resolve().then(() => /* @__PURE__ */ __toESM(require("./dist-B7ddKLda.cjs").default, 1))).then((pluginVueA11y) => {
226
277
  return pluginVueA11y.configs["flat/recommended"];
227
278
  }));
228
- if (reactOption && hasAllPackages(REACT_A11Y_PACKAGES)) presets.push((0, antfu_exports.interopDefault)(Promise.resolve().then(() => /* @__PURE__ */ require_chunk.__toESM(require("./lib-_LfrBdIh.cjs").default, 1))).then((jsxA11y) => {
279
+ if (reactOption && hasAllPackages(REACT_A11Y_PACKAGES)) presets.push((0, antfu_exports.interopDefault)(Promise.resolve().then(() => /* @__PURE__ */ __toESM(require("./lib-R7AmzwP-.cjs").default, 1))).then((jsxA11y) => {
229
280
  return jsxA11y.flatConfigs.recommended;
230
281
  }));
231
282
  return presets;
@@ -240,7 +291,7 @@ function resolveNestPresets(isEnabled) {
240
291
  function resolveQueryPresets(isEnabled) {
241
292
  if (!isEnabled) return [];
242
293
  if (!hasAllPackages(QUERY_PACKAGES)) return [];
243
- return [(0, antfu_exports.interopDefault)(Promise.resolve().then(() => require("./modern-D2OTfylT.cjs"))).then((pluginQuery) => pluginQuery.configs["flat/recommended"])];
294
+ return [(0, antfu_exports.interopDefault)(Promise.resolve().then(() => require("./modern-DRyO5loa.cjs"))).then((pluginQuery) => pluginQuery.configs["flat/recommended"])];
244
295
  }
245
296
  //#endregion
246
297
  //#region ../../node_modules/.pnpm/defu@6.1.7/node_modules/defu/dist/defu.mjs
@@ -695,6 +746,9 @@ function icebreakerLegacy(options = {}, ...userConfigs) {
695
746
  return applyOxfmtFormatterOverrides((0, antfu_exports.antfu)(toAntfuOptions(normalized), ...presets, ...userConfigs.map(normalizeUserConfig)), normalized.formatters);
696
747
  }
697
748
  //#endregion
749
+ exports.__commonJSMin = __commonJSMin;
750
+ exports.__esmMin = __esmMin;
751
+ exports.__toESM = __toESM;
698
752
  exports.getPresets = getPresets;
699
753
  exports.icebreaker = icebreaker;
700
754
  exports.icebreakerLegacy = icebreakerLegacy;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { i as __reExport, o as __toESM, r as __exportAll } from "./chunk-DwxmvJxx.js";
1
+ import { i as __reExport, o as __toESM, r as __exportAll } from "./chunk-yCSr5jVb.js";
2
2
  import { createRequire } from "node:module";
3
3
  import path from "node:path";
4
4
  import process from "node:process";
@@ -51,6 +51,24 @@ function getDefaultVueOptions(opts) {
51
51
  overrides["vue/no-deprecated-slot-attribute"] = "off";
52
52
  overrides["vue/no-useless-template-attributes"] = "off";
53
53
  overrides["vue/singleline-html-element-content-newline"] = "off";
54
+ overrides["vue/no-restricted-props"] = [
55
+ "warn",
56
+ {
57
+ name: "id",
58
+ message: "小程序组件中声明 id prop 可能无法在 properties 中正确取值,请改用其他 prop 名称。",
59
+ suggest: "customId"
60
+ },
61
+ {
62
+ name: "class",
63
+ message: "小程序组件中声明 class prop 可能无法在 properties 中正确取值,请改用其他 prop 名称。",
64
+ suggest: "customClass"
65
+ },
66
+ {
67
+ name: "slot",
68
+ message: "小程序组件中声明 slot prop 可能无法在 properties 中正确取值,请改用其他 prop 名称。",
69
+ suggest: "customSlot"
70
+ }
71
+ ];
54
72
  }
55
73
  return { overrides };
56
74
  }
@@ -219,10 +237,10 @@ function resolveMdxPresets(isEnabled) {
219
237
  function resolveAccessibilityPresets(isEnabled, vueOption, reactOption) {
220
238
  if (!isEnabled) return [];
221
239
  const presets = [];
222
- if (vueOption && hasAllPackages(VUE_A11Y_PACKAGES)) presets.push((0, antfu_exports.interopDefault)(import("./dist-Q1ckojP1.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1))).then((pluginVueA11y) => {
240
+ if (vueOption && hasAllPackages(VUE_A11Y_PACKAGES)) presets.push((0, antfu_exports.interopDefault)(import("./dist-Bhh5YMxq.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1))).then((pluginVueA11y) => {
223
241
  return pluginVueA11y.configs["flat/recommended"];
224
242
  }));
225
- if (reactOption && hasAllPackages(REACT_A11Y_PACKAGES)) presets.push((0, antfu_exports.interopDefault)(import("./lib-CsDEZ3xL.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1))).then((jsxA11y) => {
243
+ if (reactOption && hasAllPackages(REACT_A11Y_PACKAGES)) presets.push((0, antfu_exports.interopDefault)(import("./lib-Mwx9Doks.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1))).then((jsxA11y) => {
226
244
  return jsxA11y.flatConfigs.recommended;
227
245
  }));
228
246
  return presets;
@@ -237,7 +255,7 @@ function resolveNestPresets(isEnabled) {
237
255
  function resolveQueryPresets(isEnabled) {
238
256
  if (!isEnabled) return [];
239
257
  if (!hasAllPackages(QUERY_PACKAGES)) return [];
240
- return [(0, antfu_exports.interopDefault)(import("./modern-Bann1D4p.js")).then((pluginQuery) => pluginQuery.configs["flat/recommended"])];
258
+ return [(0, antfu_exports.interopDefault)(import("./modern-Dr_fOGoK.js")).then((pluginQuery) => pluginQuery.configs["flat/recommended"])];
241
259
  }
242
260
  //#endregion
243
261
  //#region ../../node_modules/.pnpm/defu@6.1.7/node_modules/defu/dist/defu.mjs
@@ -1,7 +1,7 @@
1
- const require_chunk = require("./chunk-BrWF7lJc.cjs");
1
+ const require_index = require("./index.cjs");
2
2
  let node_module = require("node:module");
3
3
  //#region ../../node_modules/.pnpm/jiti@2.7.0/node_modules/jiti/dist/jiti.cjs
4
- var require_jiti = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
4
+ var require_jiti = /* @__PURE__ */ require_index.__commonJSMin(((exports, module) => {
5
5
  (() => {
6
6
  var e = {
7
7
  "./node_modules/.pnpm/mlly@1.8.2/node_modules/mlly/dist lazy recursive"(e) {
@@ -5453,8 +5453,8 @@ function createJiti(id, opts = {}) {
5453
5453
  }
5454
5454
  var import_jiti, nativeImport, _transform;
5455
5455
  //#endregion
5456
- require_chunk.__esmMin((() => {
5457
- import_jiti = /* @__PURE__ */ require_chunk.__toESM(require_jiti(), 1);
5456
+ require_index.__esmMin((() => {
5457
+ import_jiti = /* @__PURE__ */ require_index.__toESM(require_jiti(), 1);
5458
5458
  nativeImport = (id) => import(id);
5459
5459
  }))();
5460
5460
  exports.createJiti = createJiti;
@@ -1,4 +1,4 @@
1
- import { a as __require, n as __esmMin, o as __toESM, t as __commonJSMin } from "./chunk-DwxmvJxx.js";
1
+ import { a as __require, n as __esmMin, o as __toESM, t as __commonJSMin } from "./chunk-yCSr5jVb.js";
2
2
  import { createRequire } from "node:module";
3
3
  //#region ../../node_modules/.pnpm/jiti@2.7.0/node_modules/jiti/dist/jiti.cjs
4
4
  var require_jiti = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -1,4 +1,4 @@
1
- import { t as __commonJSMin } from "./chunk-DwxmvJxx.js";
1
+ import { t as __commonJSMin } from "./chunk-yCSr5jVb.js";
2
2
  //#region ../../node_modules/.pnpm/aria-query@5.3.2/node_modules/aria-query/lib/util/iteratorProxy.js
3
3
  var require_iteratorProxy = /* @__PURE__ */ __commonJSMin(((exports) => {
4
4
  Object.defineProperty(exports, "__esModule", { value: true });