@icebreakers/eslint-config 5.0.1 → 5.0.2

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
@@ -90,12 +90,15 @@ function getDefaultVueOptions(opts) {
90
90
  "vue/no-unused-refs": "warn"
91
91
  };
92
92
  if (opts?.ionic) overrides["vue/no-deprecated-slot-attribute"] = "off";
93
- if (isMiniProgramEnabled(opts)) overrides["vue/singleline-html-element-content-newline"] = ["warn", {
94
- ignoreWhenNoAttributes: true,
95
- ignoreWhenEmpty: true,
96
- ignores: ["text", ...INLINE_ELEMENTS],
97
- externalIgnores: []
98
- }];
93
+ if (isMiniProgramEnabled(opts)) {
94
+ overrides["vue/no-useless-template-attributes"] = "off";
95
+ overrides["vue/singleline-html-element-content-newline"] = ["warn", {
96
+ ignoreWhenNoAttributes: true,
97
+ ignoreWhenEmpty: true,
98
+ ignores: ["text", ...INLINE_ELEMENTS],
99
+ externalIgnores: []
100
+ }];
101
+ }
99
102
  return { overrides };
100
103
  }
101
104
  function getDefaultTypescriptOptions(opts) {
@@ -263,10 +266,10 @@ function resolveMdxPresets(isEnabled) {
263
266
  function resolveAccessibilityPresets(isEnabled, vueOption, reactOption) {
264
267
  if (!isEnabled) return [];
265
268
  const presets = [];
266
- if (vueOption && hasAllPackages(VUE_A11Y_PACKAGES)) presets.push((0, antfu_exports.interopDefault)(Promise.resolve().then(() => /* @__PURE__ */ require_chunk.__toESM(require("./dist-Br-vKI2G.cjs").default, 1))).then((pluginVueA11y) => {
269
+ 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
270
  return pluginVueA11y.configs["flat/recommended"];
268
271
  }));
269
- if (reactOption && hasAllPackages(REACT_A11Y_PACKAGES)) presets.push((0, antfu_exports.interopDefault)(Promise.resolve().then(() => /* @__PURE__ */ require_chunk.__toESM(require("./lib-gbm6XY5m.cjs").default, 1))).then((jsxA11y) => {
272
+ 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
273
  return jsxA11y.flatConfigs.recommended;
271
274
  }));
272
275
  return presets;
@@ -281,7 +284,7 @@ function resolveNestPresets(isEnabled) {
281
284
  function resolveQueryPresets(isEnabled) {
282
285
  if (!isEnabled) return [];
283
286
  if (!hasAllPackages(QUERY_PACKAGES)) return [];
284
- return [(0, antfu_exports.interopDefault)(Promise.resolve().then(() => require("./modern-BlDFWU8k.cjs"))).then((pluginQuery) => pluginQuery.configs["flat/recommended"])];
287
+ return [(0, antfu_exports.interopDefault)(Promise.resolve().then(() => require("./modern-D2OTfylT.cjs"))).then((pluginQuery) => pluginQuery.configs["flat/recommended"])];
285
288
  }
286
289
  //#endregion
287
290
  //#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.8/node_modules/@types/estree/index.d.ts
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 | PrivateIdentifier;
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.3.0_jiti@2.7.0/node_modules/eslint/lib/types/index.d.ts
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.8/node_modules/@types/estree/index.d.ts
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 | PrivateIdentifier;
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.3.0_jiti@2.7.0/node_modules/eslint/lib/types/index.d.ts
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
@@ -87,12 +87,15 @@ function getDefaultVueOptions(opts) {
87
87
  "vue/no-unused-refs": "warn"
88
88
  };
89
89
  if (opts?.ionic) overrides["vue/no-deprecated-slot-attribute"] = "off";
90
- if (isMiniProgramEnabled(opts)) overrides["vue/singleline-html-element-content-newline"] = ["warn", {
91
- ignoreWhenNoAttributes: true,
92
- ignoreWhenEmpty: true,
93
- ignores: ["text", ...INLINE_ELEMENTS],
94
- externalIgnores: []
95
- }];
90
+ if (isMiniProgramEnabled(opts)) {
91
+ overrides["vue/no-useless-template-attributes"] = "off";
92
+ overrides["vue/singleline-html-element-content-newline"] = ["warn", {
93
+ ignoreWhenNoAttributes: true,
94
+ ignoreWhenEmpty: true,
95
+ ignores: ["text", ...INLINE_ELEMENTS],
96
+ externalIgnores: []
97
+ }];
98
+ }
96
99
  return { overrides };
97
100
  }
98
101
  function getDefaultTypescriptOptions(opts) {
@@ -260,10 +263,10 @@ function resolveMdxPresets(isEnabled) {
260
263
  function resolveAccessibilityPresets(isEnabled, vueOption, reactOption) {
261
264
  if (!isEnabled) return [];
262
265
  const presets = [];
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) => {
266
+ 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
267
  return pluginVueA11y.configs["flat/recommended"];
265
268
  }));
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) => {
269
+ 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
270
  return jsxA11y.flatConfigs.recommended;
268
271
  }));
269
272
  return presets;
@@ -278,7 +281,7 @@ function resolveNestPresets(isEnabled) {
278
281
  function resolveQueryPresets(isEnabled) {
279
282
  if (!isEnabled) return [];
280
283
  if (!hasAllPackages(QUERY_PACKAGES)) return [];
281
- return [(0, antfu_exports.interopDefault)(import("./modern-DnYnDvqZ.js")).then((pluginQuery) => pluginQuery.configs["flat/recommended"])];
284
+ return [(0, antfu_exports.interopDefault)(import("./modern-Bann1D4p.js")).then((pluginQuery) => pluginQuery.configs["flat/recommended"])];
282
285
  }
283
286
  //#endregion
284
287
  //#region ../../node_modules/.pnpm/defu@6.1.7/node_modules/defu/dist/defu.mjs