katon-labs-eslint-config 0.0.4 → 0.0.5-alpha.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
@@ -28,8 +28,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
29
 
30
30
  // src/index.ts
31
- var src_exports = {};
32
- __export(src_exports, {
31
+ var index_exports = {};
32
+ __export(index_exports, {
33
33
  GLOB_ALL_SRC: () => GLOB_ALL_SRC,
34
34
  GLOB_ASTRO: () => GLOB_ASTRO,
35
35
  GLOB_ASTRO_TS: () => GLOB_ASTRO_TS,
@@ -61,7 +61,7 @@ __export(src_exports, {
61
61
  GLOB_XML: () => GLOB_XML,
62
62
  GLOB_YAML: () => GLOB_YAML,
63
63
  StylisticConfigDefaults: () => StylisticConfigDefaults,
64
- default: () => src_default,
64
+ default: () => index_default,
65
65
  ignores: () => ignores,
66
66
  imports: () => imports,
67
67
  katonlabs: () => katonlabs,
@@ -72,7 +72,7 @@ __export(src_exports, {
72
72
  unicorn: () => unicorn,
73
73
  vue: () => vue
74
74
  });
75
- module.exports = __toCommonJS(src_exports);
75
+ module.exports = __toCommonJS(index_exports);
76
76
 
77
77
  // src/factory.ts
78
78
  var import_eslint_flat_config_utils = require("eslint-flat-config-utils");
@@ -304,9 +304,9 @@ function vue() {
304
304
  rules: {
305
305
  ...import_eslint_plugin_vue.default.configs.base.rules,
306
306
  ...import_eslint_plugin_vue.default.configs.essential.rules,
307
- ...import_eslint_plugin_vue.default.configs["vue3-recommended"].rules,
308
- ...import_eslint_plugin_vue.default.configs["vue3-strongly-recommended"].rules,
309
- ...import_eslint_plugin_vue.default.configs["vue3-essential"].rules,
307
+ ...import_eslint_plugin_vue.default.configs["flat/essential"].map((c) => c.rules).reduce((acc, c) => ({ ...acc, ...c }), {}),
308
+ ...import_eslint_plugin_vue.default.configs["flat/strongly-recommended"].map((c) => c.rules).reduce((acc, c) => ({ ...acc, ...c }), {}),
309
+ ...import_eslint_plugin_vue.default.configs["flat/recommended"].map((c) => c.rules).reduce((acc, c) => ({ ...acc, ...c }), {}),
310
310
  "vue/block-order": ["error", {
311
311
  order: ["script", "template", "style"]
312
312
  }],
@@ -547,7 +547,7 @@ function ignores() {
547
547
  }
548
548
 
549
549
  // src/factory.ts
550
- function katonlabs(options = {}) {
550
+ function katonlabs(options = {}, ...userConfigs) {
551
551
  const { ts } = options;
552
552
  const configs = [];
553
553
  configs.push(typescript(ts));
@@ -559,12 +559,15 @@ function katonlabs(options = {}) {
559
559
  configs.push(stylistic());
560
560
  configs.push(ignores());
561
561
  let composer = new import_eslint_flat_config_utils.FlatConfigComposer();
562
- composer.append(...configs);
562
+ composer.append(
563
+ ...configs,
564
+ ...userConfigs
565
+ );
563
566
  return composer;
564
567
  }
565
568
 
566
569
  // src/index.ts
567
- var src_default = katonlabs;
570
+ var index_default = katonlabs;
568
571
  // Annotate the CommonJS export names for ESM import in node:
569
572
  0 && (module.exports = {
570
573
  GLOB_ALL_SRC,