@icebreakers/eslint-config 4.0.7 → 4.0.9

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.
@@ -0,0 +1,28 @@
1
+ import "node:module";
2
+ //#region \0rolldown/runtime.js
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __exportAll = (all, no_symbols) => {
8
+ let target = {};
9
+ for (var name in all) __defProp(target, name, {
10
+ get: all[name],
11
+ enumerable: true
12
+ });
13
+ if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
14
+ return target;
15
+ };
16
+ var __copyProps = (to, from, except, desc) => {
17
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
18
+ key = keys[i];
19
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
20
+ get: ((k) => from[k]).bind(null, key),
21
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
22
+ });
23
+ }
24
+ return to;
25
+ };
26
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
27
+ //#endregion
28
+ export { __reExport as n, __exportAll as t };
package/dist/index.cjs CHANGED
@@ -570,6 +570,18 @@ function getPresets(options, mode) {
570
570
  rules: { "style/eol-last": "off" }
571
571
  }
572
572
  ];
573
+ if (resolved.vue !== false && resolved.vue !== void 0) presets.push({
574
+ name: "icebreaker/vue-style-blocks-parser",
575
+ files: [
576
+ "**/*.vue/*.css",
577
+ "**/*.vue/*.scss",
578
+ "**/*.vue/*.less",
579
+ "**/*.vue/*.postcss",
580
+ "**/*.vue/*.pcss"
581
+ ],
582
+ languageOptions: { parser: antfu_exports.parserPlain },
583
+ rules: {}
584
+ });
573
585
  presets.push(...resolveStylelintBridgePresets(resolved.stylelint), ...resolveTailwindPresets(resolved.tailwindcss), ...resolveMdxPresets(resolved.mdx), ...resolveNestPresets(resolved.nestjs), ...resolveQueryPresets(resolved.query), ...resolveAccessibilityPresets(resolved.a11y, resolved.vue, resolved.react));
574
586
  return [resolved, ...presets];
575
587
  }
@@ -771,3 +783,9 @@ exports.__toESM = __toESM;
771
783
  exports.getPresets = getPresets;
772
784
  exports.icebreaker = icebreaker;
773
785
  exports.icebreakerLegacy = icebreakerLegacy;
786
+ Object.defineProperty(exports, "parserPlain", {
787
+ enumerable: true,
788
+ get: function() {
789
+ return antfu_exports.parserPlain;
790
+ }
791
+ });
package/dist/index.d.cts CHANGED
@@ -1,6 +1,10 @@
1
1
  import { Awaitable, ConfigNames, OptionsConfig, TypedFlatConfigItem, TypedFlatConfigItem as TypedFlatConfigItem$1 } from "@antfu/eslint-config";
2
2
  import { IcebreakerStylelintOptions } from "@icebreakers/stylelint-config";
3
3
 
4
+ //#region \0rolldown/runtime.js
5
+
6
+ import * as import__antfu_eslint_config from "@antfu/eslint-config";
7
+ //#endregion
4
8
  //#region ../../node_modules/.pnpm/@types+json-schema@7.0.15/node_modules/@types/json-schema/index.d.ts
5
9
  // ==================================================================================================
6
10
  // JSON Schema Draft 04
@@ -4239,5 +4243,5 @@ type IcebreakerLegacyEslintConfig = ReturnType<typeof icebreakerLegacy>;
4239
4243
  //#endregion
4240
4244
  //#region src/preset.d.ts
4241
4245
  declare function getPresets(options?: UserDefinedOptions, mode?: 'legacy'): [UserDefinedOptions, ...UserConfigItem[]];
4242
- //#endregion
4243
- export { type ConfigNames, type FlatConfigComposer, IcebreakerEslintConfig, type IcebreakerFormatterOptions, IcebreakerLegacyEslintConfig, type StylelintBridgeConfig, type StylelintBridgeOption, type TailwindcssConfig, type TailwindcssOption, type TypedFlatConfigItem, type UnocssConfig, type UnocssOption, type UserConfigItem, type UserDefinedOptions, getPresets, icebreaker, icebreakerLegacy };
4246
+ type parserPlain = import__antfu_eslint_config.parserPlain;
4247
+ export { type ConfigNames, type FlatConfigComposer, IcebreakerEslintConfig, type IcebreakerFormatterOptions, IcebreakerLegacyEslintConfig, type StylelintBridgeConfig, type StylelintBridgeOption, type TailwindcssConfig, type TailwindcssOption, type TypedFlatConfigItem, type UnocssConfig, type UnocssOption, type UserConfigItem, type UserDefinedOptions, getPresets, icebreaker, icebreakerLegacy, parserPlain };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,10 @@
1
1
  import { Awaitable, ConfigNames, OptionsConfig, TypedFlatConfigItem, TypedFlatConfigItem as TypedFlatConfigItem$1 } from "@antfu/eslint-config";
2
2
  import { IcebreakerStylelintOptions } from "@icebreakers/stylelint-config";
3
3
 
4
+ //#region src/antfu.d.ts
5
+
6
+ import * as import__antfu_eslint_config from "@antfu/eslint-config";
7
+ //#endregion
4
8
  //#region ../../node_modules/.pnpm/@types+json-schema@7.0.15/node_modules/@types/json-schema/index.d.ts
5
9
  // ==================================================================================================
6
10
  // JSON Schema Draft 04
@@ -4239,5 +4243,5 @@ type IcebreakerLegacyEslintConfig = ReturnType<typeof icebreakerLegacy>;
4239
4243
  //#endregion
4240
4244
  //#region src/preset.d.ts
4241
4245
  declare function getPresets(options?: UserDefinedOptions, mode?: 'legacy'): [UserDefinedOptions, ...UserConfigItem[]];
4242
- //#endregion
4243
- export { type ConfigNames, type FlatConfigComposer, IcebreakerEslintConfig, type IcebreakerFormatterOptions, IcebreakerLegacyEslintConfig, type StylelintBridgeConfig, type StylelintBridgeOption, type TailwindcssConfig, type TailwindcssOption, type TypedFlatConfigItem, type UnocssConfig, type UnocssOption, type UserConfigItem, type UserDefinedOptions, getPresets, icebreaker, icebreakerLegacy };
4246
+ type parserPlain = import__antfu_eslint_config.parserPlain;
4247
+ export { type ConfigNames, type FlatConfigComposer, IcebreakerEslintConfig, type IcebreakerFormatterOptions, IcebreakerLegacyEslintConfig, type StylelintBridgeConfig, type StylelintBridgeOption, type TailwindcssConfig, type TailwindcssOption, type TypedFlatConfigItem, type UnocssConfig, type UnocssOption, type UserConfigItem, type UserDefinedOptions, getPresets, icebreaker, icebreakerLegacy, parserPlain };
package/dist/index.js CHANGED
@@ -1,34 +1,9 @@
1
+ import { n as __reExport, t as __exportAll } from "./chunk-o8xxKEmq.js";
1
2
  import { createRequire } from "node:module";
2
3
  import path from "node:path";
3
4
  import process from "node:process";
4
5
  import fs from "node:fs";
5
6
  import { fileURLToPath } from "node:url";
6
- //#region \0rolldown/runtime.js
7
- var __defProp = Object.defineProperty;
8
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
9
- var __getOwnPropNames = Object.getOwnPropertyNames;
10
- var __hasOwnProp = Object.prototype.hasOwnProperty;
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
- //#endregion
32
7
  //#region src/antfu.ts
33
8
  var antfu_exports = /* @__PURE__ */ __exportAll({});
34
9
  import * as import__antfu_eslint_config from "@antfu/eslint-config";
@@ -561,6 +536,18 @@ function getPresets(options, mode) {
561
536
  rules: { "style/eol-last": "off" }
562
537
  }
563
538
  ];
539
+ if (resolved.vue !== false && resolved.vue !== void 0) presets.push({
540
+ name: "icebreaker/vue-style-blocks-parser",
541
+ files: [
542
+ "**/*.vue/*.css",
543
+ "**/*.vue/*.scss",
544
+ "**/*.vue/*.less",
545
+ "**/*.vue/*.postcss",
546
+ "**/*.vue/*.pcss"
547
+ ],
548
+ languageOptions: { parser: antfu_exports.parserPlain },
549
+ rules: {}
550
+ });
564
551
  presets.push(...resolveStylelintBridgePresets(resolved.stylelint), ...resolveTailwindPresets(resolved.tailwindcss), ...resolveMdxPresets(resolved.mdx), ...resolveNestPresets(resolved.nestjs), ...resolveQueryPresets(resolved.query), ...resolveAccessibilityPresets(resolved.a11y, resolved.vue, resolved.react));
565
552
  return [resolved, ...presets];
566
553
  }
@@ -758,4 +745,5 @@ function icebreakerLegacy(options = {}, ...userConfigs) {
758
745
  return applyOxfmtFormatterOverrides((0, antfu_exports.antfu)(toAntfuOptions(normalized), ...presets, ...userConfigs.map(normalizeUserConfig)), normalized.formatters);
759
746
  }
760
747
  //#endregion
761
- export { getPresets, icebreaker, icebreakerLegacy };
748
+ var parserPlain = antfu_exports.parserPlain;
749
+ export { getPresets, icebreaker, icebreakerLegacy, parserPlain };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@icebreakers/eslint-config",
3
3
  "type": "module",
4
- "version": "4.0.7",
4
+ "version": "4.0.9",
5
5
  "description": "ESLint preset from Icebreaker's dev-configs",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -52,7 +52,7 @@
52
52
  "dependencies": {
53
53
  "@antfu/eslint-config": "8.2.0",
54
54
  "@eslint-react/eslint-plugin": "^3.0.0",
55
- "@typescript-eslint/utils": "^8.58.2",
55
+ "@typescript-eslint/utils": "^8.59.0",
56
56
  "eslint-plugin-better-tailwindcss": "^4.4.1",
57
57
  "eslint-plugin-format": "2.0.1",
58
58
  "eslint-plugin-jsx-a11y": "^6.10.2",
@@ -60,12 +60,12 @@
60
60
  "eslint-plugin-react-refresh": "^0.5.2",
61
61
  "eslint-plugin-tailwindcss": "3.18.3",
62
62
  "eslint-plugin-vuejs-accessibility": "^2.5.0",
63
- "eslint-plugin-better-stylelint": "1.0.2",
64
- "@icebreakers/stylelint-config": "3.0.5"
63
+ "@icebreakers/stylelint-config": "3.0.6",
64
+ "eslint-plugin-better-stylelint": "1.0.3"
65
65
  },
66
66
  "optionalDependencies": {
67
67
  "@next/eslint-plugin-next": "^16.2.4",
68
- "@tanstack/eslint-plugin-query": "^5.99.1",
68
+ "@tanstack/eslint-plugin-query": "^5.100.5",
69
69
  "@unocss/eslint-plugin": "66.6.8",
70
70
  "eslint-plugin-mdx": "3.7.0"
71
71
  },