@storm-software/eslint 0.164.0 → 0.165.0

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/preset.d.ts CHANGED
@@ -28,5 +28,7 @@ declare function getOverrides<K extends keyof OptionsConfig>(options: OptionsCon
28
28
  * @param userConfigs - Additional ESLint configurations.
29
29
  */
30
30
  declare function getStormConfig(options: OptionsConfig & Omit<TypedFlatConfigItem, "files">, ...userConfigs: Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[] | FlatConfigComposer<object, string> | Linter.Config[]>[]): FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
31
+ declare const getConfig: typeof getStormConfig;
32
+ declare const defineConfig: typeof getStormConfig;
31
33
 
32
- export { type ResolvedOptions, getStormConfig as default, defaultPluginRenaming, getOverrides, getStormConfig, resolveSubOptions };
34
+ export { type ResolvedOptions, getStormConfig as default, defaultPluginRenaming, defineConfig, getConfig, getOverrides, getStormConfig, resolveSubOptions };
package/dist/preset.js CHANGED
@@ -55,9 +55,9 @@ import {
55
55
  init_esm_shims
56
56
  } from "./chunk-NAOQBQSK.js";
57
57
 
58
- // ../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=de009a33a0a628f48c96f1a59298fb264fe3e5f5a0a221b7fda5cc52d4c890de/node_modules/eslint-plugin-tsdoc/lib/Debug.js
58
+ // ../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=c7db1cb91f47551a01d6f78ec9e2a2170f4f73afe2f4fa05161caf67d70e7f8a/node_modules/eslint-plugin-tsdoc/lib/Debug.js
59
59
  var require_Debug = __commonJS({
60
- "../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=de009a33a0a628f48c96f1a59298fb264fe3e5f5a0a221b7fda5cc52d4c890de/node_modules/eslint-plugin-tsdoc/lib/Debug.js"(exports) {
60
+ "../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=c7db1cb91f47551a01d6f78ec9e2a2170f4f73afe2f4fa05161caf67d70e7f8a/node_modules/eslint-plugin-tsdoc/lib/Debug.js"(exports) {
61
61
  "use strict";
62
62
  init_esm_shims();
63
63
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -71,12 +71,12 @@ var require_Debug = __commonJS({
71
71
  }
72
72
  });
73
73
 
74
- // ../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=de009a33a0a628f48c96f1a59298fb264fe3e5f5a0a221b7fda5cc52d4c890de/node_modules/eslint-plugin-tsdoc/lib/ConfigCache.js
74
+ // ../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=c7db1cb91f47551a01d6f78ec9e2a2170f4f73afe2f4fa05161caf67d70e7f8a/node_modules/eslint-plugin-tsdoc/lib/ConfigCache.js
75
75
  import * as __import__microsoft_tsdocConfig from "@microsoft/tsdoc-config";
76
76
  import * as __import_path from "path";
77
77
  import * as __import_fs from "fs";
78
78
  var require_ConfigCache = __commonJS({
79
- "../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=de009a33a0a628f48c96f1a59298fb264fe3e5f5a0a221b7fda5cc52d4c890de/node_modules/eslint-plugin-tsdoc/lib/ConfigCache.js"(exports) {
79
+ "../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=c7db1cb91f47551a01d6f78ec9e2a2170f4f73afe2f4fa05161caf67d70e7f8a/node_modules/eslint-plugin-tsdoc/lib/ConfigCache.js"(exports) {
80
80
  "use strict";
81
81
  init_esm_shims();
82
82
  var __import___Debug = __toESM(require_Debug());
@@ -251,24 +251,41 @@ var require_ConfigCache = __commonJS({
251
251
  if (!workspaceRoot) {
252
252
  workspaceRoot = findWorkspaceRoot3();
253
253
  }
254
- const configFilePath = process.env.STORM_TSDOC_CONFIG_FILE ? process.env.STORM_TSDOC_CONFIG_FILE : configFile ? path.existsSync(
255
- path.join(
256
- workspaceRoot,
257
- "node_modules",
258
- configFile
259
- )
260
- ) ? path.join(
261
- workspaceRoot,
262
- "node_modules",
263
- configFile
264
- ) : configFile : path.join(
265
- workspaceRoot,
266
- "node_modules",
267
- "@storm-software",
268
- "tsdoc",
269
- "config",
270
- (process.env.STORM_TSDOC_TYPE ? process.env.STORM_TSDOC_TYPE : type).endsWith(".json") ? process.env.STORM_TSDOC_TYPE ? process.env.STORM_TSDOC_TYPE : type : `${process.env.STORM_TSDOC_TYPE ? process.env.STORM_TSDOC_TYPE : type}.json`
271
- );
254
+ let configFilePath = process.env.STORM_TSDOC_CONFIG_FILE ? process.env.STORM_TSDOC_CONFIG_FILE : configFile;
255
+ if (!configFilePath) {
256
+ if (path.existsSync(
257
+ path.join(
258
+ workspaceRoot,
259
+ "node_modules",
260
+ configFile
261
+ )
262
+ )) {
263
+ configFilePath = path.join(
264
+ workspaceRoot,
265
+ "node_modules",
266
+ configFile
267
+ );
268
+ } else if (path.existsSync(
269
+ path.join(
270
+ workspaceRoot,
271
+ configFile
272
+ )
273
+ )) {
274
+ configFilePath = path.join(
275
+ workspaceRoot,
276
+ configFile
277
+ );
278
+ } else {
279
+ configFilePath = path.join(
280
+ workspaceRoot,
281
+ "node_modules",
282
+ "@storm-software",
283
+ "tsdoc",
284
+ "config",
285
+ (process.env.STORM_TSDOC_TYPE ? process.env.STORM_TSDOC_TYPE : type).endsWith(".json") ? process.env.STORM_TSDOC_TYPE ? process.env.STORM_TSDOC_TYPE : type : `${process.env.STORM_TSDOC_TYPE ? process.env.STORM_TSDOC_TYPE : type}.json`
286
+ );
287
+ }
288
+ }
272
289
  const cacheKey = configFilePath;
273
290
  Debug_1.Debug.log(`Storm Software Configuration Cache key: "${cacheKey}"`);
274
291
  const nowMs = _ConfigCache._getTimeInMs();
@@ -319,10 +336,10 @@ var require_ConfigCache = __commonJS({
319
336
  }
320
337
  });
321
338
 
322
- // ../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=de009a33a0a628f48c96f1a59298fb264fe3e5f5a0a221b7fda5cc52d4c890de/node_modules/eslint-plugin-tsdoc/lib/index.js
339
+ // ../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=c7db1cb91f47551a01d6f78ec9e2a2170f4f73afe2f4fa05161caf67d70e7f8a/node_modules/eslint-plugin-tsdoc/lib/index.js
323
340
  import * as __import__microsoft_tsdoc from "@microsoft/tsdoc";
324
341
  var require_lib = __commonJS({
325
- "../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=de009a33a0a628f48c96f1a59298fb264fe3e5f5a0a221b7fda5cc52d4c890de/node_modules/eslint-plugin-tsdoc/lib/index.js"(exports, module) {
342
+ "../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=c7db1cb91f47551a01d6f78ec9e2a2170f4f73afe2f4fa05161caf67d70e7f8a/node_modules/eslint-plugin-tsdoc/lib/index.js"(exports, module) {
326
343
  "use strict";
327
344
  init_esm_shims();
328
345
  var __import___Debug = __toESM(require_Debug());
@@ -8644,10 +8661,14 @@ function getStormConfig(options, ...userConfigs) {
8644
8661
  }
8645
8662
  return composer;
8646
8663
  }
8664
+ var getConfig = getStormConfig;
8665
+ var defineConfig = getStormConfig;
8647
8666
  var preset_default = getStormConfig;
8648
8667
  export {
8649
8668
  preset_default as default,
8650
8669
  defaultPluginRenaming,
8670
+ defineConfig,
8671
+ getConfig,
8651
8672
  getOverrides,
8652
8673
  getStormConfig,
8653
8674
  resolveSubOptions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/eslint",
3
- "version": "0.164.0",
3
+ "version": "0.165.0",
4
4
  "type": "module",
5
5
  "description": "A package containing the base ESLint configuration used by Storm Software across many projects.",
6
6
  "repository": {
@@ -164,8 +164,8 @@
164
164
  "@eslint/eslintrc": "^3.3.1",
165
165
  "@eslint/markdown": "^6.6.0",
166
166
  "@nx/eslint-plugin": "^21.4.1",
167
- "@storm-software/config": "^1.129.2",
168
- "@storm-software/config-tools": "^1.182.0",
167
+ "@storm-software/config": "^1.130.0",
168
+ "@storm-software/config-tools": "^1.183.0",
169
169
  "@stylistic/eslint-plugin": "^4.4.1",
170
170
  "@typescript-eslint/eslint-plugin": "^8.35.0",
171
171
  "@typescript-eslint/parser": "^8.35.0",
@@ -241,5 +241,5 @@
241
241
  },
242
242
  "publishConfig": { "access": "public" },
243
243
  "sideEffects": false,
244
- "gitHead": "33495f6446b9cce3f9874b76bc93cdc975e2d866"
244
+ "gitHead": "d3350e57030ab2882bb43180d63535b49e411f11"
245
245
  }