@icebreakers/eslint-config 5.0.1 → 5.0.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/README.md +1 -1
- package/README.zh.md +1 -1
- package/dist/{dist-Dk5MjvLV.js → dist-Q1ckojP1.js} +579 -556
- package/dist/{dist-Br-vKI2G.cjs → dist-fjokZKZW.cjs} +579 -556
- package/dist/index.cjs +8 -49
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +8 -49
- package/dist/{lib-DS3f4hEx.js → lib-CsDEZ3xL.js} +108 -108
- package/dist/{lib-gbm6XY5m.cjs → lib-_LfrBdIh.cjs} +108 -108
- package/dist/{modern-DnYnDvqZ.js → modern-Bann1D4p.js} +8 -3
- package/dist/{modern-BlDFWU8k.cjs → modern-D2OTfylT.cjs} +8 -3
- package/package.json +8 -8
package/dist/index.cjs
CHANGED
|
@@ -13,46 +13,6 @@ var antfu_exports = /* @__PURE__ */ require_chunk.__exportAll({});
|
|
|
13
13
|
require_chunk.__reExport(antfu_exports, require("@antfu/eslint-config"));
|
|
14
14
|
//#endregion
|
|
15
15
|
//#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
16
|
const nestjsTypeScriptRules = {
|
|
57
17
|
"ts/explicit-function-return-type": "off",
|
|
58
18
|
"ts/explicit-module-boundary-types": "off",
|
|
@@ -90,12 +50,11 @@ function getDefaultVueOptions(opts) {
|
|
|
90
50
|
"vue/no-unused-refs": "warn"
|
|
91
51
|
};
|
|
92
52
|
if (opts?.ionic) overrides["vue/no-deprecated-slot-attribute"] = "off";
|
|
93
|
-
if (isMiniProgramEnabled(opts))
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
}];
|
|
53
|
+
if (isMiniProgramEnabled(opts)) {
|
|
54
|
+
overrides["vue/no-deprecated-slot-attribute"] = "off";
|
|
55
|
+
overrides["vue/no-useless-template-attributes"] = "off";
|
|
56
|
+
overrides["vue/singleline-html-element-content-newline"] = "off";
|
|
57
|
+
}
|
|
99
58
|
return { overrides };
|
|
100
59
|
}
|
|
101
60
|
function getDefaultTypescriptOptions(opts) {
|
|
@@ -263,10 +222,10 @@ function resolveMdxPresets(isEnabled) {
|
|
|
263
222
|
function resolveAccessibilityPresets(isEnabled, vueOption, reactOption) {
|
|
264
223
|
if (!isEnabled) return [];
|
|
265
224
|
const presets = [];
|
|
266
|
-
if (vueOption && hasAllPackages(VUE_A11Y_PACKAGES)) presets.push((0, antfu_exports.interopDefault)(Promise.resolve().then(() => /* @__PURE__ */ require_chunk.__toESM(require("./dist-
|
|
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) => {
|
|
267
226
|
return pluginVueA11y.configs["flat/recommended"];
|
|
268
227
|
}));
|
|
269
|
-
if (reactOption && hasAllPackages(REACT_A11Y_PACKAGES)) presets.push((0, antfu_exports.interopDefault)(Promise.resolve().then(() => /* @__PURE__ */ require_chunk.__toESM(require("./lib-
|
|
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) => {
|
|
270
229
|
return jsxA11y.flatConfigs.recommended;
|
|
271
230
|
}));
|
|
272
231
|
return presets;
|
|
@@ -281,7 +240,7 @@ function resolveNestPresets(isEnabled) {
|
|
|
281
240
|
function resolveQueryPresets(isEnabled) {
|
|
282
241
|
if (!isEnabled) return [];
|
|
283
242
|
if (!hasAllPackages(QUERY_PACKAGES)) return [];
|
|
284
|
-
return [(0, antfu_exports.interopDefault)(Promise.resolve().then(() => require("./modern-
|
|
243
|
+
return [(0, antfu_exports.interopDefault)(Promise.resolve().then(() => require("./modern-D2OTfylT.cjs"))).then((pluginQuery) => pluginQuery.configs["flat/recommended"])];
|
|
285
244
|
}
|
|
286
245
|
//#endregion
|
|
287
246
|
//#region ../../node_modules/.pnpm/defu@6.1.7/node_modules/defu/dist/defu.mjs
|
package/dist/index.d.cts
CHANGED
|
@@ -6,7 +6,7 @@ import { IcebreakerStylelintOptions } from "@icebreakers/stylelint-config";
|
|
|
6
6
|
|
|
7
7
|
import * as import__antfu_eslint_config from "@antfu/eslint-config";
|
|
8
8
|
//#endregion
|
|
9
|
-
//#region ../../node_modules/.pnpm/@types+estree@1.0.
|
|
9
|
+
//#region ../../node_modules/.pnpm/@types+estree@1.0.9/node_modules/@types/estree/index.d.ts
|
|
10
10
|
// This definition file follows a somewhat unusual format. ESTree allows
|
|
11
11
|
// runtime type checks based on the `type` parameter. In order to explain this
|
|
12
12
|
// to typescript we want to use discriminated union types:
|
|
@@ -256,7 +256,7 @@ interface PrivateIdentifier extends BaseNode {
|
|
|
256
256
|
}
|
|
257
257
|
interface Property extends BaseNode {
|
|
258
258
|
type: "Property";
|
|
259
|
-
key: Expression
|
|
259
|
+
key: Expression;
|
|
260
260
|
value: Expression | Pattern; // Could be an AssignmentProperty
|
|
261
261
|
kind: "init" | "get" | "set";
|
|
262
262
|
method: boolean;
|
|
@@ -1853,7 +1853,7 @@ type CustomRuleVisitorWithExit$1<RuleVisitorType extends RuleVisitor$1> = { [Key
|
|
|
1853
1853
|
type RuleVisitor = RuleVisitor$1;
|
|
1854
1854
|
type CustomRuleVisitorWithExit<RuleVisitorType extends RuleVisitor> = CustomRuleVisitorWithExit$1<RuleVisitorType>;
|
|
1855
1855
|
//#endregion
|
|
1856
|
-
//#region ../../node_modules/.pnpm/eslint@10.
|
|
1856
|
+
//#region ../../node_modules/.pnpm/eslint@10.4.0_jiti@2.7.0/node_modules/eslint/lib/types/index.d.ts
|
|
1857
1857
|
//------------------------------------------------------------------------------
|
|
1858
1858
|
// Exports
|
|
1859
1859
|
//------------------------------------------------------------------------------
|
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { FlatConfigComposer, FlatConfigComposer as FlatConfigComposer$1 } from "
|
|
|
6
6
|
|
|
7
7
|
import * as import__antfu_eslint_config from "@antfu/eslint-config";
|
|
8
8
|
//#endregion
|
|
9
|
-
//#region ../../node_modules/.pnpm/@types+estree@1.0.
|
|
9
|
+
//#region ../../node_modules/.pnpm/@types+estree@1.0.9/node_modules/@types/estree/index.d.ts
|
|
10
10
|
// This definition file follows a somewhat unusual format. ESTree allows
|
|
11
11
|
// runtime type checks based on the `type` parameter. In order to explain this
|
|
12
12
|
// to typescript we want to use discriminated union types:
|
|
@@ -256,7 +256,7 @@ interface PrivateIdentifier extends BaseNode {
|
|
|
256
256
|
}
|
|
257
257
|
interface Property extends BaseNode {
|
|
258
258
|
type: "Property";
|
|
259
|
-
key: Expression
|
|
259
|
+
key: Expression;
|
|
260
260
|
value: Expression | Pattern; // Could be an AssignmentProperty
|
|
261
261
|
kind: "init" | "get" | "set";
|
|
262
262
|
method: boolean;
|
|
@@ -1853,7 +1853,7 @@ type CustomRuleVisitorWithExit$1<RuleVisitorType extends RuleVisitor$1> = { [Key
|
|
|
1853
1853
|
type RuleVisitor = RuleVisitor$1;
|
|
1854
1854
|
type CustomRuleVisitorWithExit<RuleVisitorType extends RuleVisitor> = CustomRuleVisitorWithExit$1<RuleVisitorType>;
|
|
1855
1855
|
//#endregion
|
|
1856
|
-
//#region ../../node_modules/.pnpm/eslint@10.
|
|
1856
|
+
//#region ../../node_modules/.pnpm/eslint@10.4.0_jiti@2.7.0/node_modules/eslint/lib/types/index.d.ts
|
|
1857
1857
|
//------------------------------------------------------------------------------
|
|
1858
1858
|
// Exports
|
|
1859
1859
|
//------------------------------------------------------------------------------
|
package/dist/index.js
CHANGED
|
@@ -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",
|
|
@@ -87,12 +47,11 @@ function getDefaultVueOptions(opts) {
|
|
|
87
47
|
"vue/no-unused-refs": "warn"
|
|
88
48
|
};
|
|
89
49
|
if (opts?.ionic) overrides["vue/no-deprecated-slot-attribute"] = "off";
|
|
90
|
-
if (isMiniProgramEnabled(opts))
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
}];
|
|
50
|
+
if (isMiniProgramEnabled(opts)) {
|
|
51
|
+
overrides["vue/no-deprecated-slot-attribute"] = "off";
|
|
52
|
+
overrides["vue/no-useless-template-attributes"] = "off";
|
|
53
|
+
overrides["vue/singleline-html-element-content-newline"] = "off";
|
|
54
|
+
}
|
|
96
55
|
return { overrides };
|
|
97
56
|
}
|
|
98
57
|
function getDefaultTypescriptOptions(opts) {
|
|
@@ -260,10 +219,10 @@ function resolveMdxPresets(isEnabled) {
|
|
|
260
219
|
function resolveAccessibilityPresets(isEnabled, vueOption, reactOption) {
|
|
261
220
|
if (!isEnabled) return [];
|
|
262
221
|
const presets = [];
|
|
263
|
-
if (vueOption && hasAllPackages(VUE_A11Y_PACKAGES)) presets.push((0, antfu_exports.interopDefault)(import("./dist-
|
|
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) => {
|
|
264
223
|
return pluginVueA11y.configs["flat/recommended"];
|
|
265
224
|
}));
|
|
266
|
-
if (reactOption && hasAllPackages(REACT_A11Y_PACKAGES)) presets.push((0, antfu_exports.interopDefault)(import("./lib-
|
|
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) => {
|
|
267
226
|
return jsxA11y.flatConfigs.recommended;
|
|
268
227
|
}));
|
|
269
228
|
return presets;
|
|
@@ -278,7 +237,7 @@ function resolveNestPresets(isEnabled) {
|
|
|
278
237
|
function resolveQueryPresets(isEnabled) {
|
|
279
238
|
if (!isEnabled) return [];
|
|
280
239
|
if (!hasAllPackages(QUERY_PACKAGES)) return [];
|
|
281
|
-
return [(0, antfu_exports.interopDefault)(import("./modern-
|
|
240
|
+
return [(0, antfu_exports.interopDefault)(import("./modern-Bann1D4p.js")).then((pluginQuery) => pluginQuery.configs["flat/recommended"])];
|
|
282
241
|
}
|
|
283
242
|
//#endregion
|
|
284
243
|
//#region ../../node_modules/.pnpm/defu@6.1.7/node_modules/defu/dist/defu.mjs
|