@storm-software/eslint 0.170.97 → 0.170.99

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.cjs CHANGED
@@ -1408,9 +1408,9 @@ var require_eslint_plugin_react_native = __commonJS({
1408
1408
  }
1409
1409
  });
1410
1410
 
1411
- // ../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=11b9fbe0e91a2ce3492e80b89a7502a9ff364683b23b9bdfc2c979d988e1682b/node_modules/eslint-plugin-tsdoc/lib/Debug.js
1411
+ // ../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=c262176eba68bfd8898c896d48ca12af2147a650ca7a9cbfe8edf1cf981cdbc9/node_modules/eslint-plugin-tsdoc/lib/Debug.js
1412
1412
  var require_Debug = __commonJS({
1413
- "../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=11b9fbe0e91a2ce3492e80b89a7502a9ff364683b23b9bdfc2c979d988e1682b/node_modules/eslint-plugin-tsdoc/lib/Debug.js"(exports) {
1413
+ "../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=c262176eba68bfd8898c896d48ca12af2147a650ca7a9cbfe8edf1cf981cdbc9/node_modules/eslint-plugin-tsdoc/lib/Debug.js"(exports) {
1414
1414
  init_cjs_shims();
1415
1415
  Object.defineProperty(exports, "__esModule", { value: true });
1416
1416
  exports.Debug = void 0;
@@ -1423,9 +1423,9 @@ var require_Debug = __commonJS({
1423
1423
  }
1424
1424
  });
1425
1425
 
1426
- // ../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=11b9fbe0e91a2ce3492e80b89a7502a9ff364683b23b9bdfc2c979d988e1682b/node_modules/eslint-plugin-tsdoc/lib/ConfigCache.js
1426
+ // ../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=c262176eba68bfd8898c896d48ca12af2147a650ca7a9cbfe8edf1cf981cdbc9/node_modules/eslint-plugin-tsdoc/lib/ConfigCache.js
1427
1427
  var require_ConfigCache = __commonJS({
1428
- "../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=11b9fbe0e91a2ce3492e80b89a7502a9ff364683b23b9bdfc2c979d988e1682b/node_modules/eslint-plugin-tsdoc/lib/ConfigCache.js"(exports) {
1428
+ "../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=c262176eba68bfd8898c896d48ca12af2147a650ca7a9cbfe8edf1cf981cdbc9/node_modules/eslint-plugin-tsdoc/lib/ConfigCache.js"(exports) {
1429
1429
  init_cjs_shims();
1430
1430
  var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
1431
1431
  if (k2 === void 0) k2 = k;
@@ -1757,9 +1757,9 @@ var require_ConfigCache = __commonJS({
1757
1757
  }
1758
1758
  });
1759
1759
 
1760
- // ../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=11b9fbe0e91a2ce3492e80b89a7502a9ff364683b23b9bdfc2c979d988e1682b/node_modules/eslint-plugin-tsdoc/lib/index.js
1760
+ // ../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=c262176eba68bfd8898c896d48ca12af2147a650ca7a9cbfe8edf1cf981cdbc9/node_modules/eslint-plugin-tsdoc/lib/index.js
1761
1761
  var require_lib = __commonJS({
1762
- "../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=11b9fbe0e91a2ce3492e80b89a7502a9ff364683b23b9bdfc2c979d988e1682b/node_modules/eslint-plugin-tsdoc/lib/index.js"(exports, module) {
1762
+ "../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=c262176eba68bfd8898c896d48ca12af2147a650ca7a9cbfe8edf1cf981cdbc9/node_modules/eslint-plugin-tsdoc/lib/index.js"(exports, module) {
1763
1763
  init_cjs_shims();
1764
1764
  var tsdoc_1 = __require("@microsoft/tsdoc");
1765
1765
  var Debug_1 = require_Debug();
@@ -1803,6 +1803,10 @@ Please ensure "@storm-software/tsdoc" is installed in the workspace root.`,
1803
1803
  configFile: {
1804
1804
  type: "string",
1805
1805
  description: "The TSDoc configuration file to use."
1806
+ },
1807
+ tsconfigRootDir: {
1808
+ type: "string",
1809
+ description: "The root directory to use when resolving the tsconfig file. This is only necessary if the tsconfig file is not located in the same directory as the source file being linted. If not provided, eslint will attempt to use the parser option 'tsconfigRootDir' if it is available."
1806
1810
  }
1807
1811
  },
1808
1812
  additionalProperties: false
@@ -1816,13 +1820,17 @@ Please ensure "@storm-software/tsdoc" is installed in the workspace root.`,
1816
1820
  ],
1817
1821
  create: (context) => {
1818
1822
  const tsdocConfiguration = new tsdoc_1.TSDocConfiguration();
1819
- const tsConfigDir = context.parserOptions.tsconfigRootDir;
1823
+ let tsConfigDir = void 0;
1820
1824
  const sourceFilePath = context.filename;
1821
1825
  Debug_1.Debug.log(`Linting: "${sourceFilePath}"`);
1822
1826
  try {
1823
1827
  let tsdocConfigFile = {};
1824
1828
  try {
1825
1829
  const userOptions = context.options ? Array.isArray(context.options) ? context.options.length > 0 ? context.options[0] : {} : context.options : {};
1830
+ tsConfigDir = userOptions.tsconfigRootDir;
1831
+ if (!tsConfigDir && context.parserOptions && context.parserOptions.tsconfigRootDir) {
1832
+ tsConfigDir = context.parserOptions.tsconfigRootDir;
1833
+ }
1826
1834
  const config5 = { type: userOptions.type || "recommended", configFile: userOptions.configFile };
1827
1835
  Debug_1.Debug.log(`Using eslint-plugin-tsdoc config: ${JSON.stringify(config5, void 0, 2)}`);
1828
1836
  tsdocConfigFile = ConfigCache_1.ConfigCache.getStormConfigFile(config5);
@@ -1892,7 +1900,7 @@ Please ensure "@storm-software/tsdoc" is installed in the workspace root.`,
1892
1900
  });
1893
1901
  }
1894
1902
  const tsdocParser = new tsdoc_1.TSDocParser(tsdocConfiguration);
1895
- const sourceCode = context.getSourceCode();
1903
+ const sourceCode = context.sourceCode || context.getSourceCode();
1896
1904
  const checkCommentBlocks = function(node2) {
1897
1905
  for (const comment of sourceCode.getAllComments()) {
1898
1906
  if (comment.type !== "Block") {
@@ -5707,7 +5715,7 @@ init_cjs_shims();
5707
5715
 
5708
5716
  // ../eslint-plugin-banner/package.json
5709
5717
  var package_default = {
5710
- version: "0.0.28"};
5718
+ version: "0.0.30"};
5711
5719
 
5712
5720
  // ../eslint-plugin-banner/src/rules/banner.ts
5713
5721
  init_cjs_shims();
@@ -19865,7 +19873,7 @@ plugin3.configs = configs3;
19865
19873
 
19866
19874
  // ../eslint-plugin-pnpm/package.json
19867
19875
  var package_default2 = {
19868
- version: "0.0.26"};
19876
+ version: "0.0.28"};
19869
19877
 
19870
19878
  // ../eslint-plugin-pnpm/src/plugin.ts
19871
19879
  var plugin4 = {
@@ -20751,7 +20759,10 @@ async function tsdoc(options = {}) {
20751
20759
  tsdoc: import_eslint_plugin_tsdoc.default
20752
20760
  },
20753
20761
  rules: {
20754
- "tsdoc/syntax": [severity, { type, configFile }]
20762
+ "tsdoc/syntax": [
20763
+ severity,
20764
+ { type, configFile, tsconfigRootDir: findWorkspaceRoot2() }
20765
+ ]
20755
20766
  }
20756
20767
  }
20757
20768
  ];
package/dist/preset.js CHANGED
@@ -1337,9 +1337,9 @@ var require_eslint_plugin_react_native = __commonJS({
1337
1337
  }
1338
1338
  });
1339
1339
 
1340
- // ../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=11b9fbe0e91a2ce3492e80b89a7502a9ff364683b23b9bdfc2c979d988e1682b/node_modules/eslint-plugin-tsdoc/lib/Debug.js
1340
+ // ../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=c262176eba68bfd8898c896d48ca12af2147a650ca7a9cbfe8edf1cf981cdbc9/node_modules/eslint-plugin-tsdoc/lib/Debug.js
1341
1341
  var require_Debug = __commonJS({
1342
- "../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=11b9fbe0e91a2ce3492e80b89a7502a9ff364683b23b9bdfc2c979d988e1682b/node_modules/eslint-plugin-tsdoc/lib/Debug.js"(exports) {
1342
+ "../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=c262176eba68bfd8898c896d48ca12af2147a650ca7a9cbfe8edf1cf981cdbc9/node_modules/eslint-plugin-tsdoc/lib/Debug.js"(exports) {
1343
1343
  init_esm_shims();
1344
1344
  Object.defineProperty(exports, "__esModule", { value: true });
1345
1345
  exports.Debug = void 0;
@@ -1352,7 +1352,7 @@ var require_Debug = __commonJS({
1352
1352
  }
1353
1353
  });
1354
1354
  var require_ConfigCache = __commonJS({
1355
- "../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=11b9fbe0e91a2ce3492e80b89a7502a9ff364683b23b9bdfc2c979d988e1682b/node_modules/eslint-plugin-tsdoc/lib/ConfigCache.js"(exports) {
1355
+ "../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=c262176eba68bfd8898c896d48ca12af2147a650ca7a9cbfe8edf1cf981cdbc9/node_modules/eslint-plugin-tsdoc/lib/ConfigCache.js"(exports) {
1356
1356
  init_esm_shims();
1357
1357
  var __import___Debug = __toESM(require_Debug());
1358
1358
  var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
@@ -1685,7 +1685,7 @@ var require_ConfigCache = __commonJS({
1685
1685
  }
1686
1686
  });
1687
1687
  var require_lib = __commonJS({
1688
- "../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=11b9fbe0e91a2ce3492e80b89a7502a9ff364683b23b9bdfc2c979d988e1682b/node_modules/eslint-plugin-tsdoc/lib/index.js"(exports, module) {
1688
+ "../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=c262176eba68bfd8898c896d48ca12af2147a650ca7a9cbfe8edf1cf981cdbc9/node_modules/eslint-plugin-tsdoc/lib/index.js"(exports, module) {
1689
1689
  init_esm_shims();
1690
1690
  var __import___Debug = __toESM(require_Debug());
1691
1691
  var __import___ConfigCache = __toESM(require_ConfigCache());
@@ -1731,6 +1731,10 @@ Please ensure "@storm-software/tsdoc" is installed in the workspace root.`,
1731
1731
  configFile: {
1732
1732
  type: "string",
1733
1733
  description: "The TSDoc configuration file to use."
1734
+ },
1735
+ tsconfigRootDir: {
1736
+ type: "string",
1737
+ description: "The root directory to use when resolving the tsconfig file. This is only necessary if the tsconfig file is not located in the same directory as the source file being linted. If not provided, eslint will attempt to use the parser option 'tsconfigRootDir' if it is available."
1734
1738
  }
1735
1739
  },
1736
1740
  additionalProperties: false
@@ -1744,13 +1748,17 @@ Please ensure "@storm-software/tsdoc" is installed in the workspace root.`,
1744
1748
  ],
1745
1749
  create: (context) => {
1746
1750
  const tsdocConfiguration = new tsdoc_1.TSDocConfiguration();
1747
- const tsConfigDir = context.parserOptions.tsconfigRootDir;
1751
+ let tsConfigDir = void 0;
1748
1752
  const sourceFilePath = context.filename;
1749
1753
  Debug_1.Debug.log(`Linting: "${sourceFilePath}"`);
1750
1754
  try {
1751
1755
  let tsdocConfigFile = {};
1752
1756
  try {
1753
1757
  const userOptions = context.options ? Array.isArray(context.options) ? context.options.length > 0 ? context.options[0] : {} : context.options : {};
1758
+ tsConfigDir = userOptions.tsconfigRootDir;
1759
+ if (!tsConfigDir && context.parserOptions && context.parserOptions.tsconfigRootDir) {
1760
+ tsConfigDir = context.parserOptions.tsconfigRootDir;
1761
+ }
1754
1762
  const config5 = { type: userOptions.type || "recommended", configFile: userOptions.configFile };
1755
1763
  Debug_1.Debug.log(`Using eslint-plugin-tsdoc config: ${JSON.stringify(config5, void 0, 2)}`);
1756
1764
  tsdocConfigFile = ConfigCache_1.ConfigCache.getStormConfigFile(config5);
@@ -1820,7 +1828,7 @@ Please ensure "@storm-software/tsdoc" is installed in the workspace root.`,
1820
1828
  });
1821
1829
  }
1822
1830
  const tsdocParser = new tsdoc_1.TSDocParser(tsdocConfiguration);
1823
- const sourceCode = context.getSourceCode();
1831
+ const sourceCode = context.sourceCode || context.getSourceCode();
1824
1832
  const checkCommentBlocks = function(node2) {
1825
1833
  for (const comment of sourceCode.getAllComments()) {
1826
1834
  if (comment.type !== "Block") {
@@ -5566,7 +5574,7 @@ init_esm_shims();
5566
5574
 
5567
5575
  // ../eslint-plugin-banner/package.json
5568
5576
  var package_default = {
5569
- version: "0.0.28"};
5577
+ version: "0.0.30"};
5570
5578
 
5571
5579
  // ../eslint-plugin-banner/src/rules/banner.ts
5572
5580
  init_esm_shims();
@@ -19466,7 +19474,7 @@ plugin3.configs = configs3;
19466
19474
 
19467
19475
  // ../eslint-plugin-pnpm/package.json
19468
19476
  var package_default2 = {
19469
- version: "0.0.26"};
19477
+ version: "0.0.28"};
19470
19478
 
19471
19479
  // ../eslint-plugin-pnpm/src/plugin.ts
19472
19480
  var plugin4 = {
@@ -20352,7 +20360,10 @@ async function tsdoc(options = {}) {
20352
20360
  tsdoc: import_eslint_plugin_tsdoc.default
20353
20361
  },
20354
20362
  rules: {
20355
- "tsdoc/syntax": [severity, { type, configFile }]
20363
+ "tsdoc/syntax": [
20364
+ severity,
20365
+ { type, configFile, tsconfigRootDir: findWorkspaceRoot() }
20366
+ ]
20356
20367
  }
20357
20368
  }
20358
20369
  ];
package/dist/types.d.cts CHANGED
@@ -17606,6 +17606,8 @@ type TsdocSyntax = []|[{
17606
17606
  type?: ("typedoc" | "api-extractor" | "base" | "core" | "callouts" | "recommended")
17607
17607
 
17608
17608
  configFile?: string
17609
+
17610
+ tsconfigRootDir?: string
17609
17611
  }]
17610
17612
  // ----- unicode-bom -----
17611
17613
  type UnicodeBom = []|[("always" | "never")]
package/dist/types.d.ts CHANGED
@@ -17606,6 +17606,8 @@ type TsdocSyntax = []|[{
17606
17606
  type?: ("typedoc" | "api-extractor" | "base" | "core" | "callouts" | "recommended")
17607
17607
 
17608
17608
  configFile?: string
17609
+
17610
+ tsconfigRootDir?: string
17609
17611
  }]
17610
17612
  // ----- unicode-bom -----
17611
17613
  type UnicodeBom = []|[("always" | "never")]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/eslint",
3
- "version": "0.170.97",
3
+ "version": "0.170.99",
4
4
  "private": false,
5
5
  "description": "A package containing the base ESLint configuration used by Storm Software across many projects.",
6
6
  "keywords": [
@@ -141,9 +141,9 @@
141
141
  "@eslint/eslintrc": "^3.3.5",
142
142
  "@eslint/markdown": "^6.6.0",
143
143
  "@nx/eslint-plugin": "22.7.5",
144
- "@storm-software/config": "1.138.1",
145
- "@storm-software/config-tools": "1.190.64",
146
- "@storm-software/package-constants": "0.1.77",
144
+ "@storm-software/config": "1.138.3",
145
+ "@storm-software/config-tools": "1.190.66",
146
+ "@storm-software/package-constants": "0.1.79",
147
147
  "@stylistic/eslint-plugin": "^4.4.1",
148
148
  "@typescript-eslint/eslint-plugin": "^8.61.0",
149
149
  "@typescript-eslint/parser": "^8.61.0",
@@ -196,9 +196,9 @@
196
196
  "@next/eslint-plugin-next": "^15.5.19",
197
197
  "@nx/eslint": "22.7.5",
198
198
  "@prettier/plugin-xml": "^3.4.2",
199
- "@storm-software/eslint-plugin-banner": "0.0.29",
200
- "@storm-software/eslint-plugin-pnpm": "0.0.27",
201
- "@storm-software/eslint-plugin-tsdoc": "0.0.27",
199
+ "@storm-software/eslint-plugin-banner": "0.0.31",
200
+ "@storm-software/eslint-plugin-pnpm": "0.0.29",
201
+ "@storm-software/eslint-plugin-tsdoc": "0.0.29",
202
202
  "@stylistic/eslint-plugin-migrate": "^4.4.1",
203
203
  "@types/eslint": "^9.6.1",
204
204
  "@types/eslint__js": "^8.42.3",
@@ -271,5 +271,5 @@
271
271
  "zod": { "optional": true }
272
272
  },
273
273
  "publishConfig": { "access": "public" },
274
- "gitHead": "058ac110e66970612f8f2498c7c1e1246ef4cd54"
274
+ "gitHead": "dd09355cfe1d1665412fc1923a3f1557805dc804"
275
275
  }