@exadev/eslint-config 2.10.4 → 2.10.5

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
@@ -119,7 +119,7 @@ function buildReactConfig(options = {}) {
119
119
  }
120
120
  //#endregion
121
121
  //#region package.json
122
- var version = "2.10.4";
122
+ var version = "2.10.5";
123
123
  //#endregion
124
124
  //#region src/rules/barrel-helpers.ts
125
125
  const INDEX_BASENAME$1 = /^index\.[cm]?[tj]sx?$/;
@@ -1421,14 +1421,19 @@ const recommendedTypeChecked = [
1421
1421
  }
1422
1422
  ];
1423
1423
  //#endregion
1424
+ //#region src/to-public-config-array.ts
1425
+ function toPublicConfigArray(built) {
1426
+ return built;
1427
+ }
1428
+ //#endregion
1424
1429
  //#region src/create-config.ts
1425
1430
  function exadevConfig(options = {}, ...userConfigs) {
1426
- return [
1431
+ return toPublicConfigArray([
1427
1432
  ...recommendedTypeChecked,
1428
1433
  ...buildReactConfig({ enabled: options.react }),
1429
1434
  ...buildNextjsConfig({ enabled: options.nextjs }),
1430
1435
  ...userConfigs
1431
- ];
1436
+ ]);
1432
1437
  }
1433
1438
  const defaultConfig = exadevConfig();
1434
1439
  //#endregion
package/dist/index.d.cts CHANGED
@@ -1,15 +1,15 @@
1
1
  import { TSESLint } from "@typescript-eslint/utils";
2
+ import { Config } from "eslint/config";
2
3
  //#region src/config-types.d.ts
3
- type ConfigValue = NonNullable<TSESLint.FlatConfig.Plugin['configs']>[string];
4
- type ConfigArrayValue = Extract<ConfigValue, unknown[]>;
4
+ type PublicConfigArray = Config[];
5
5
  //#endregion
6
6
  //#region src/create-config.d.ts
7
7
  interface ExadevConfigOptions {
8
8
  readonly react?: boolean;
9
9
  readonly nextjs?: boolean;
10
10
  }
11
- declare function exadevConfig(options?: ExadevConfigOptions, ...userConfigs: readonly TSESLint.FlatConfig.Config[]): ConfigArrayValue;
12
- declare const defaultConfig: ConfigArrayValue;
11
+ declare function exadevConfig(options?: ExadevConfigOptions, ...userConfigs: readonly TSESLint.FlatConfig.Config[]): PublicConfigArray;
12
+ declare const defaultConfig: PublicConfigArray;
13
13
  //#endregion
14
14
  //#region src/plugin.d.ts
15
15
  declare const plugin: TSESLint.FlatConfig.Plugin;
package/dist/index.d.ts CHANGED
@@ -1,15 +1,15 @@
1
1
  import { TSESLint } from "@typescript-eslint/utils";
2
+ import { Config } from "eslint/config";
2
3
  //#region src/config-types.d.ts
3
- type ConfigValue = NonNullable<TSESLint.FlatConfig.Plugin['configs']>[string];
4
- type ConfigArrayValue = Extract<ConfigValue, unknown[]>;
4
+ type PublicConfigArray = Config[];
5
5
  //#endregion
6
6
  //#region src/create-config.d.ts
7
7
  interface ExadevConfigOptions {
8
8
  readonly react?: boolean;
9
9
  readonly nextjs?: boolean;
10
10
  }
11
- declare function exadevConfig(options?: ExadevConfigOptions, ...userConfigs: readonly TSESLint.FlatConfig.Config[]): ConfigArrayValue;
12
- declare const defaultConfig: ConfigArrayValue;
11
+ declare function exadevConfig(options?: ExadevConfigOptions, ...userConfigs: readonly TSESLint.FlatConfig.Config[]): PublicConfigArray;
12
+ declare const defaultConfig: PublicConfigArray;
13
13
  //#endregion
14
14
  //#region src/plugin.d.ts
15
15
  declare const plugin: TSESLint.FlatConfig.Plugin;
package/dist/index.js CHANGED
@@ -90,7 +90,7 @@ function buildReactConfig(options = {}) {
90
90
  }
91
91
  //#endregion
92
92
  //#region package.json
93
- var version = "2.10.4";
93
+ var version = "2.10.5";
94
94
  //#endregion
95
95
  //#region src/rules/barrel-helpers.ts
96
96
  const INDEX_BASENAME$1 = /^index\.[cm]?[tj]sx?$/;
@@ -1392,14 +1392,19 @@ const recommendedTypeChecked = [
1392
1392
  }
1393
1393
  ];
1394
1394
  //#endregion
1395
+ //#region src/to-public-config-array.ts
1396
+ function toPublicConfigArray(built) {
1397
+ return built;
1398
+ }
1399
+ //#endregion
1395
1400
  //#region src/create-config.ts
1396
1401
  function exadevConfig(options = {}, ...userConfigs) {
1397
- return [
1402
+ return toPublicConfigArray([
1398
1403
  ...recommendedTypeChecked,
1399
1404
  ...buildReactConfig({ enabled: options.react }),
1400
1405
  ...buildNextjsConfig({ enabled: options.nextjs }),
1401
1406
  ...userConfigs
1402
- ];
1407
+ ]);
1403
1408
  }
1404
1409
  const defaultConfig = exadevConfig();
1405
1410
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exadev/eslint-config",
3
- "version": "2.10.4",
3
+ "version": "2.10.5",
4
4
  "description": "Shared custom ESLint rules and plugin for ExaDev projects",
5
5
  "type": "module",
6
6
  "sideEffects": false,