@icebreakers/eslint-config 5.0.2 → 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.
- package/README.md +1 -1
- package/README.zh.md +1 -1
- package/dist/{dist-fjokZKZW.cjs → dist-B7ddKLda.cjs} +615 -615
- package/dist/{dist-Q1ckojP1.js → dist-Bhh5YMxq.js} +16 -16
- package/dist/index.cjs +65 -55
- package/dist/index.js +24 -50
- package/dist/{jiti-rvW1Nngq.cjs → jiti-BOkVoEUx.cjs} +4 -4
- package/dist/{jiti-DflBE4I9.js → jiti-CwIriPCr.js} +1 -1
- package/dist/{lib-COpZ8-nd.js → lib-Dc92-WCU.js} +1 -1
- package/dist/{lib-ivfmw_L0.cjs → lib-H3OzP-X_.cjs} +152 -152
- package/dist/{lib-CsDEZ3xL.js → lib-Mwx9Doks.js} +5 -5
- package/dist/{lib-_LfrBdIh.cjs → lib-R7AmzwP-.cjs} +473 -473
- package/dist/{modern-D2OTfylT.cjs → modern-DRyO5loa.cjs} +0 -1
- package/dist/{src-seAD4Fwt.cjs → src-C34Mcqt3.cjs} +9 -9
- package/dist/{src-ByvzhpaY.js → src-DPttw6yg.js} +1 -1
- package/dist/stylelint.cjs +0 -1
- package/package.json +3 -3
- package/dist/chunk-BrWF7lJc.cjs +0 -64
- /package/dist/{chunk-DwxmvJxx.js → chunk-yCSr5jVb.js} +0 -0
- /package/dist/{modern-Bann1D4p.js → modern-Dr_fOGoK.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as __require, t as __commonJSMin } from "./chunk-
|
|
2
|
-
import { t as require_lib$3 } from "./lib-
|
|
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 =
|
|
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 =
|
|
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 = /*
|
|
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 = /*
|
|
15114
|
-
const supportedEcmaVersions = /*
|
|
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 =
|
|
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 =
|
|
72738
|
-
const starNoEmpty =
|
|
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 : "") +
|
|
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 =
|
|
76984
|
-
var windowsPath__namespace =
|
|
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-
|
|
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-
|
|
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-
|
|
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,58 +1,51 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
|
|
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 =
|
|
37
|
+
node_path = __toESM(node_path, 1);
|
|
5
38
|
let node_process = require("node:process");
|
|
6
|
-
node_process =
|
|
39
|
+
node_process = __toESM(node_process, 1);
|
|
7
40
|
let node_fs = require("node:fs");
|
|
8
|
-
node_fs =
|
|
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__ */
|
|
13
|
-
|
|
45
|
+
var antfu_exports = /* @__PURE__ */ __exportAll({});
|
|
46
|
+
__reExport(antfu_exports, require("@antfu/eslint-config"));
|
|
14
47
|
//#endregion
|
|
15
48
|
//#region src/defaults.ts
|
|
16
|
-
const INLINE_ELEMENTS = [
|
|
17
|
-
"a",
|
|
18
|
-
"abbr",
|
|
19
|
-
"audio",
|
|
20
|
-
"b",
|
|
21
|
-
"bdi",
|
|
22
|
-
"bdo",
|
|
23
|
-
"canvas",
|
|
24
|
-
"cite",
|
|
25
|
-
"code",
|
|
26
|
-
"data",
|
|
27
|
-
"del",
|
|
28
|
-
"dfn",
|
|
29
|
-
"em",
|
|
30
|
-
"i",
|
|
31
|
-
"iframe",
|
|
32
|
-
"ins",
|
|
33
|
-
"kbd",
|
|
34
|
-
"label",
|
|
35
|
-
"map",
|
|
36
|
-
"mark",
|
|
37
|
-
"noscript",
|
|
38
|
-
"object",
|
|
39
|
-
"output",
|
|
40
|
-
"picture",
|
|
41
|
-
"q",
|
|
42
|
-
"ruby",
|
|
43
|
-
"s",
|
|
44
|
-
"samp",
|
|
45
|
-
"small",
|
|
46
|
-
"span",
|
|
47
|
-
"strong",
|
|
48
|
-
"sub",
|
|
49
|
-
"sup",
|
|
50
|
-
"svg",
|
|
51
|
-
"time",
|
|
52
|
-
"u",
|
|
53
|
-
"var",
|
|
54
|
-
"video"
|
|
55
|
-
];
|
|
56
49
|
const nestjsTypeScriptRules = {
|
|
57
50
|
"ts/explicit-function-return-type": "off",
|
|
58
51
|
"ts/explicit-module-boundary-types": "off",
|
|
@@ -91,13 +84,27 @@ function getDefaultVueOptions(opts) {
|
|
|
91
84
|
};
|
|
92
85
|
if (opts?.ionic) overrides["vue/no-deprecated-slot-attribute"] = "off";
|
|
93
86
|
if (isMiniProgramEnabled(opts)) {
|
|
87
|
+
overrides["vue/no-deprecated-slot-attribute"] = "off";
|
|
94
88
|
overrides["vue/no-useless-template-attributes"] = "off";
|
|
95
|
-
overrides["vue/singleline-html-element-content-newline"] =
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
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
|
+
];
|
|
101
108
|
}
|
|
102
109
|
return { overrides };
|
|
103
110
|
}
|
|
@@ -266,10 +273,10 @@ function resolveMdxPresets(isEnabled) {
|
|
|
266
273
|
function resolveAccessibilityPresets(isEnabled, vueOption, reactOption) {
|
|
267
274
|
if (!isEnabled) return [];
|
|
268
275
|
const presets = [];
|
|
269
|
-
if (vueOption && hasAllPackages(VUE_A11Y_PACKAGES)) presets.push((0, antfu_exports.interopDefault)(Promise.resolve().then(() => /* @__PURE__ */
|
|
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) => {
|
|
270
277
|
return pluginVueA11y.configs["flat/recommended"];
|
|
271
278
|
}));
|
|
272
|
-
if (reactOption && hasAllPackages(REACT_A11Y_PACKAGES)) presets.push((0, antfu_exports.interopDefault)(Promise.resolve().then(() => /* @__PURE__ */
|
|
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) => {
|
|
273
280
|
return jsxA11y.flatConfigs.recommended;
|
|
274
281
|
}));
|
|
275
282
|
return presets;
|
|
@@ -284,7 +291,7 @@ function resolveNestPresets(isEnabled) {
|
|
|
284
291
|
function resolveQueryPresets(isEnabled) {
|
|
285
292
|
if (!isEnabled) return [];
|
|
286
293
|
if (!hasAllPackages(QUERY_PACKAGES)) return [];
|
|
287
|
-
return [(0, antfu_exports.interopDefault)(Promise.resolve().then(() => require("./modern-
|
|
294
|
+
return [(0, antfu_exports.interopDefault)(Promise.resolve().then(() => require("./modern-DRyO5loa.cjs"))).then((pluginQuery) => pluginQuery.configs["flat/recommended"])];
|
|
288
295
|
}
|
|
289
296
|
//#endregion
|
|
290
297
|
//#region ../../node_modules/.pnpm/defu@6.1.7/node_modules/defu/dist/defu.mjs
|
|
@@ -739,6 +746,9 @@ function icebreakerLegacy(options = {}, ...userConfigs) {
|
|
|
739
746
|
return applyOxfmtFormatterOverrides((0, antfu_exports.antfu)(toAntfuOptions(normalized), ...presets, ...userConfigs.map(normalizeUserConfig)), normalized.formatters);
|
|
740
747
|
}
|
|
741
748
|
//#endregion
|
|
749
|
+
exports.__commonJSMin = __commonJSMin;
|
|
750
|
+
exports.__esmMin = __esmMin;
|
|
751
|
+
exports.__toESM = __toESM;
|
|
742
752
|
exports.getPresets = getPresets;
|
|
743
753
|
exports.icebreaker = icebreaker;
|
|
744
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-
|
|
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";
|
|
@@ -10,46 +10,6 @@ import * as import__antfu_eslint_config from "@antfu/eslint-config";
|
|
|
10
10
|
__reExport(antfu_exports, import__antfu_eslint_config);
|
|
11
11
|
//#endregion
|
|
12
12
|
//#region src/defaults.ts
|
|
13
|
-
const INLINE_ELEMENTS = [
|
|
14
|
-
"a",
|
|
15
|
-
"abbr",
|
|
16
|
-
"audio",
|
|
17
|
-
"b",
|
|
18
|
-
"bdi",
|
|
19
|
-
"bdo",
|
|
20
|
-
"canvas",
|
|
21
|
-
"cite",
|
|
22
|
-
"code",
|
|
23
|
-
"data",
|
|
24
|
-
"del",
|
|
25
|
-
"dfn",
|
|
26
|
-
"em",
|
|
27
|
-
"i",
|
|
28
|
-
"iframe",
|
|
29
|
-
"ins",
|
|
30
|
-
"kbd",
|
|
31
|
-
"label",
|
|
32
|
-
"map",
|
|
33
|
-
"mark",
|
|
34
|
-
"noscript",
|
|
35
|
-
"object",
|
|
36
|
-
"output",
|
|
37
|
-
"picture",
|
|
38
|
-
"q",
|
|
39
|
-
"ruby",
|
|
40
|
-
"s",
|
|
41
|
-
"samp",
|
|
42
|
-
"small",
|
|
43
|
-
"span",
|
|
44
|
-
"strong",
|
|
45
|
-
"sub",
|
|
46
|
-
"sup",
|
|
47
|
-
"svg",
|
|
48
|
-
"time",
|
|
49
|
-
"u",
|
|
50
|
-
"var",
|
|
51
|
-
"video"
|
|
52
|
-
];
|
|
53
13
|
const nestjsTypeScriptRules = {
|
|
54
14
|
"ts/explicit-function-return-type": "off",
|
|
55
15
|
"ts/explicit-module-boundary-types": "off",
|
|
@@ -88,13 +48,27 @@ function getDefaultVueOptions(opts) {
|
|
|
88
48
|
};
|
|
89
49
|
if (opts?.ionic) overrides["vue/no-deprecated-slot-attribute"] = "off";
|
|
90
50
|
if (isMiniProgramEnabled(opts)) {
|
|
51
|
+
overrides["vue/no-deprecated-slot-attribute"] = "off";
|
|
91
52
|
overrides["vue/no-useless-template-attributes"] = "off";
|
|
92
|
-
overrides["vue/singleline-html-element-content-newline"] =
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
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
|
+
];
|
|
98
72
|
}
|
|
99
73
|
return { overrides };
|
|
100
74
|
}
|
|
@@ -263,10 +237,10 @@ function resolveMdxPresets(isEnabled) {
|
|
|
263
237
|
function resolveAccessibilityPresets(isEnabled, vueOption, reactOption) {
|
|
264
238
|
if (!isEnabled) return [];
|
|
265
239
|
const presets = [];
|
|
266
|
-
if (vueOption && hasAllPackages(VUE_A11Y_PACKAGES)) presets.push((0, antfu_exports.interopDefault)(import("./dist-
|
|
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) => {
|
|
267
241
|
return pluginVueA11y.configs["flat/recommended"];
|
|
268
242
|
}));
|
|
269
|
-
if (reactOption && hasAllPackages(REACT_A11Y_PACKAGES)) presets.push((0, antfu_exports.interopDefault)(import("./lib-
|
|
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) => {
|
|
270
244
|
return jsxA11y.flatConfigs.recommended;
|
|
271
245
|
}));
|
|
272
246
|
return presets;
|
|
@@ -281,7 +255,7 @@ function resolveNestPresets(isEnabled) {
|
|
|
281
255
|
function resolveQueryPresets(isEnabled) {
|
|
282
256
|
if (!isEnabled) return [];
|
|
283
257
|
if (!hasAllPackages(QUERY_PACKAGES)) return [];
|
|
284
|
-
return [(0, antfu_exports.interopDefault)(import("./modern-
|
|
258
|
+
return [(0, antfu_exports.interopDefault)(import("./modern-Dr_fOGoK.js")).then((pluginQuery) => pluginQuery.configs["flat/recommended"])];
|
|
285
259
|
}
|
|
286
260
|
//#endregion
|
|
287
261
|
//#region ../../node_modules/.pnpm/defu@6.1.7/node_modules/defu/dist/defu.mjs
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const
|
|
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__ */
|
|
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
|
-
|
|
5457
|
-
import_jiti = /* @__PURE__ */
|
|
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-
|
|
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-
|
|
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 });
|