katon-labs-eslint-config 0.0.4 → 0.0.5-alpha.1

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
@@ -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,7 +559,10 @@ 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
 
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { FlatConfigComposer } from 'eslint-flat-config-utils';
1
+ import { Awaitable, FlatConfigComposer } from 'eslint-flat-config-utils';
2
2
  import { Linter } from 'eslint';
3
3
  import { StylisticCustomizeOptions } from '@stylistic/eslint-plugin';
4
4
 
@@ -8337,7 +8337,7 @@ declare function ignores(): TypedFlatConfigItem[];
8337
8337
  interface FactoryOptions {
8338
8338
  ts?: TypescriptOptionsFile;
8339
8339
  }
8340
- declare function katonlabs(options?: FactoryOptions): FlatConfigComposer;
8340
+ declare function katonlabs(options?: FactoryOptions, ...userConfigs: Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[] | Linter.Config[]>[]): FlatConfigComposer;
8341
8341
 
8342
8342
  declare const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
8343
8343
  declare const GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { FlatConfigComposer } from 'eslint-flat-config-utils';
1
+ import { Awaitable, FlatConfigComposer } from 'eslint-flat-config-utils';
2
2
  import { Linter } from 'eslint';
3
3
  import { StylisticCustomizeOptions } from '@stylistic/eslint-plugin';
4
4
 
@@ -8337,7 +8337,7 @@ declare function ignores(): TypedFlatConfigItem[];
8337
8337
  interface FactoryOptions {
8338
8338
  ts?: TypescriptOptionsFile;
8339
8339
  }
8340
- declare function katonlabs(options?: FactoryOptions): FlatConfigComposer;
8340
+ declare function katonlabs(options?: FactoryOptions, ...userConfigs: Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[] | Linter.Config[]>[]): FlatConfigComposer;
8341
8341
 
8342
8342
  declare const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
8343
8343
  declare const GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
package/dist/index.js CHANGED
@@ -471,7 +471,7 @@ function ignores() {
471
471
  }
472
472
 
473
473
  // src/factory.ts
474
- function katonlabs(options = {}) {
474
+ function katonlabs(options = {}, ...userConfigs) {
475
475
  const { ts } = options;
476
476
  const configs = [];
477
477
  configs.push(typescript(ts));
@@ -483,7 +483,10 @@ function katonlabs(options = {}) {
483
483
  configs.push(stylistic());
484
484
  configs.push(ignores());
485
485
  let composer = new FlatConfigComposer();
486
- composer.append(...configs);
486
+ composer.append(
487
+ ...configs,
488
+ ...userConfigs
489
+ );
487
490
  return composer;
488
491
  }
489
492
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "katon-labs-eslint-config",
3
3
  "type": "module",
4
- "version": "0.0.4",
4
+ "version": "0.0.5-alpha.1",
5
5
  "packageManager": "bun@1.1.27",
6
6
  "description": "Katon Labs's ESLint config",
7
7
  "author": "Alam Esa Wikanning Katon <naturaatom@gmail.com> (https://github.com/wikanonymous-dev/)",