@storm-software/linting-tools 1.132.13 → 1.132.14

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/README.md CHANGED
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
21
21
 
22
22
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
23
23
 
24
- [![Version](https://img.shields.io/badge/version-1.132.11-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-1.132.12-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
package/bin/lint.cjs CHANGED
@@ -367655,7 +367655,7 @@ var import_fs_extra = _chunkJVFVAT7Wcjs.__toESM.call(void 0, require_lib6(), 1);
367655
367655
  // ../../node_modules/.pnpm/glob@11.0.3/node_modules/glob/dist/esm/index.js
367656
367656
  _chunkJVFVAT7Wcjs.init_cjs_shims.call(void 0, );
367657
367657
 
367658
- // ../../node_modules/.pnpm/minimatch@10.0.3/node_modules/minimatch/dist/esm/index.js
367658
+ // ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/esm/index.js
367659
367659
  _chunkJVFVAT7Wcjs.init_cjs_shims.call(void 0, );
367660
367660
 
367661
367661
  // ../../node_modules/.pnpm/@isaacs+brace-expansion@5.0.0/node_modules/@isaacs/brace-expansion/dist/esm/index.js
@@ -367873,7 +367873,7 @@ function expand_(str2, isTop) {
367873
367873
  return expansions;
367874
367874
  }
367875
367875
 
367876
- // ../../node_modules/.pnpm/minimatch@10.0.3/node_modules/minimatch/dist/esm/assert-valid-pattern.js
367876
+ // ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/esm/assert-valid-pattern.js
367877
367877
  _chunkJVFVAT7Wcjs.init_cjs_shims.call(void 0, );
367878
367878
  var MAX_PATTERN_LENGTH2 = 1024 * 64;
367879
367879
  var assertValidPattern2 = (pattern) => {
@@ -367885,10 +367885,10 @@ var assertValidPattern2 = (pattern) => {
367885
367885
  }
367886
367886
  };
367887
367887
 
367888
- // ../../node_modules/.pnpm/minimatch@10.0.3/node_modules/minimatch/dist/esm/ast.js
367888
+ // ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/esm/ast.js
367889
367889
  _chunkJVFVAT7Wcjs.init_cjs_shims.call(void 0, );
367890
367890
 
367891
- // ../../node_modules/.pnpm/minimatch@10.0.3/node_modules/minimatch/dist/esm/brace-expressions.js
367891
+ // ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/esm/brace-expressions.js
367892
367892
  _chunkJVFVAT7Wcjs.init_cjs_shims.call(void 0, );
367893
367893
  var posixClasses2 = {
367894
367894
  "[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
@@ -367998,13 +367998,16 @@ var parseClass2 = (glob5, position3) => {
367998
367998
  return [comb, uflag, endPos - pos, true];
367999
367999
  };
368000
368000
 
368001
- // ../../node_modules/.pnpm/minimatch@10.0.3/node_modules/minimatch/dist/esm/unescape.js
368001
+ // ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/esm/unescape.js
368002
368002
  _chunkJVFVAT7Wcjs.init_cjs_shims.call(void 0, );
368003
- var unescape4 = (s, { windowsPathsNoEscape = false } = {}) => {
368004
- return windowsPathsNoEscape ? s.replace(/\[([^\/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
368003
+ var unescape4 = (s, { windowsPathsNoEscape = false, magicalBraces = true } = {}) => {
368004
+ if (magicalBraces) {
368005
+ return windowsPathsNoEscape ? s.replace(/\[([^\/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
368006
+ }
368007
+ return windowsPathsNoEscape ? s.replace(/\[([^\/\\{}])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\{}])\]/g, "$1$2").replace(/\\([^\/{}])/g, "$1");
368005
368008
  };
368006
368009
 
368007
- // ../../node_modules/.pnpm/minimatch@10.0.3/node_modules/minimatch/dist/esm/ast.js
368010
+ // ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/esm/ast.js
368008
368011
  var types2 = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]);
368009
368012
  var isExtglobType2 = (c) => types2.has(c);
368010
368013
  var startNoTraversal2 = "(?!(?:^|/)\\.\\.?(?:$|/))";
@@ -368355,7 +368358,7 @@ var AST2 = class _AST {
368355
368358
  if (this.#root === this)
368356
368359
  this.#fillNegs();
368357
368360
  if (!this.type) {
368358
- const noEmpty = this.isStart() && this.isEnd();
368361
+ const noEmpty = this.isStart() && this.isEnd() && !this.#parts.some((s) => typeof s !== "string");
368359
368362
  const src = this.#parts.map((p) => {
368360
368363
  const [re, _, hasMagic3, uflag] = typeof p === "string" ? _AST.#parseGlob(p, this.#hasMagic, noEmpty) : p.toRegExpSource(allowDot);
368361
368364
  this.#hasMagic = this.#hasMagic || hasMagic3;
@@ -368465,10 +368468,7 @@ var AST2 = class _AST {
368465
368468
  }
368466
368469
  }
368467
368470
  if (c === "*") {
368468
- if (noEmpty && glob5 === "*")
368469
- re += starNoEmpty2;
368470
- else
368471
- re += star3;
368471
+ re += noEmpty && glob5 === "*" ? starNoEmpty2 : star3;
368472
368472
  hasMagic3 = true;
368473
368473
  continue;
368474
368474
  }
@@ -368483,13 +368483,16 @@ var AST2 = class _AST {
368483
368483
  }
368484
368484
  };
368485
368485
 
368486
- // ../../node_modules/.pnpm/minimatch@10.0.3/node_modules/minimatch/dist/esm/escape.js
368486
+ // ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/esm/escape.js
368487
368487
  _chunkJVFVAT7Wcjs.init_cjs_shims.call(void 0, );
368488
- var escape3 = (s, { windowsPathsNoEscape = false } = {}) => {
368488
+ var escape3 = (s, { windowsPathsNoEscape = false, magicalBraces = false } = {}) => {
368489
+ if (magicalBraces) {
368490
+ return windowsPathsNoEscape ? s.replace(/[?*()[\]{}]/g, "[$&]") : s.replace(/[?*()[\]\\{}]/g, "\\$&");
368491
+ }
368489
368492
  return windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&");
368490
368493
  };
368491
368494
 
368492
- // ../../node_modules/.pnpm/minimatch@10.0.3/node_modules/minimatch/dist/esm/index.js
368495
+ // ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/esm/index.js
368493
368496
  var minimatch2 = (p, pattern, options = {}) => {
368494
368497
  assertValidPattern2(pattern);
368495
368498
  if (!options.nocomment && pattern.charAt(0) === "#") {
@@ -369126,16 +369129,27 @@ var Minimatch2 = class {
369126
369129
  pp[i] = twoStar;
369127
369130
  }
369128
369131
  } else if (next === void 0) {
369129
- pp[i - 1] = prev + "(?:\\/|" + twoStar + ")?";
369132
+ pp[i - 1] = prev + "(?:\\/|\\/" + twoStar + ")?";
369130
369133
  } else if (next !== GLOBSTAR2) {
369131
369134
  pp[i - 1] = prev + "(?:\\/|\\/" + twoStar + "\\/)" + next;
369132
369135
  pp[i + 1] = GLOBSTAR2;
369133
369136
  }
369134
369137
  });
369135
- return pp.filter((p) => p !== GLOBSTAR2).join("/");
369138
+ const filtered = pp.filter((p) => p !== GLOBSTAR2);
369139
+ if (this.partial && filtered.length >= 1) {
369140
+ const prefixes = [];
369141
+ for (let i = 1; i <= filtered.length; i++) {
369142
+ prefixes.push(filtered.slice(0, i).join("/"));
369143
+ }
369144
+ return "(?:" + prefixes.join("|") + ")";
369145
+ }
369146
+ return filtered.join("/");
369136
369147
  }).join("|");
369137
369148
  const [open2, close] = set4.length > 1 ? ["(?:", ")"] : ["", ""];
369138
369149
  re = "^" + open2 + re + close + "$";
369150
+ if (this.partial) {
369151
+ re = "^(?:\\/|" + open2 + re.slice(1, -1) + close + ")$";
369152
+ }
369139
369153
  if (this.negate)
369140
369154
  re = "^(?!" + re + ").+$";
369141
369155
  try {
package/bin/lint.js CHANGED
@@ -359267,7 +359267,7 @@ var import_fs_extra = __toESM(require_lib6(), 1);
359267
359267
  // ../../node_modules/.pnpm/glob@11.0.3/node_modules/glob/dist/esm/index.js
359268
359268
  init_esm_shims();
359269
359269
 
359270
- // ../../node_modules/.pnpm/minimatch@10.0.3/node_modules/minimatch/dist/esm/index.js
359270
+ // ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/esm/index.js
359271
359271
  init_esm_shims();
359272
359272
 
359273
359273
  // ../../node_modules/.pnpm/@isaacs+brace-expansion@5.0.0/node_modules/@isaacs/brace-expansion/dist/esm/index.js
@@ -359485,7 +359485,7 @@ function expand_(str2, isTop) {
359485
359485
  return expansions;
359486
359486
  }
359487
359487
 
359488
- // ../../node_modules/.pnpm/minimatch@10.0.3/node_modules/minimatch/dist/esm/assert-valid-pattern.js
359488
+ // ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/esm/assert-valid-pattern.js
359489
359489
  init_esm_shims();
359490
359490
  var MAX_PATTERN_LENGTH2 = 1024 * 64;
359491
359491
  var assertValidPattern2 = (pattern) => {
@@ -359497,10 +359497,10 @@ var assertValidPattern2 = (pattern) => {
359497
359497
  }
359498
359498
  };
359499
359499
 
359500
- // ../../node_modules/.pnpm/minimatch@10.0.3/node_modules/minimatch/dist/esm/ast.js
359500
+ // ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/esm/ast.js
359501
359501
  init_esm_shims();
359502
359502
 
359503
- // ../../node_modules/.pnpm/minimatch@10.0.3/node_modules/minimatch/dist/esm/brace-expressions.js
359503
+ // ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/esm/brace-expressions.js
359504
359504
  init_esm_shims();
359505
359505
  var posixClasses2 = {
359506
359506
  "[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
@@ -359610,13 +359610,16 @@ var parseClass2 = (glob5, position3) => {
359610
359610
  return [comb, uflag, endPos - pos, true];
359611
359611
  };
359612
359612
 
359613
- // ../../node_modules/.pnpm/minimatch@10.0.3/node_modules/minimatch/dist/esm/unescape.js
359613
+ // ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/esm/unescape.js
359614
359614
  init_esm_shims();
359615
- var unescape4 = (s, { windowsPathsNoEscape = false } = {}) => {
359616
- return windowsPathsNoEscape ? s.replace(/\[([^\/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
359615
+ var unescape4 = (s, { windowsPathsNoEscape = false, magicalBraces = true } = {}) => {
359616
+ if (magicalBraces) {
359617
+ return windowsPathsNoEscape ? s.replace(/\[([^\/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
359618
+ }
359619
+ return windowsPathsNoEscape ? s.replace(/\[([^\/\\{}])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\{}])\]/g, "$1$2").replace(/\\([^\/{}])/g, "$1");
359617
359620
  };
359618
359621
 
359619
- // ../../node_modules/.pnpm/minimatch@10.0.3/node_modules/minimatch/dist/esm/ast.js
359622
+ // ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/esm/ast.js
359620
359623
  var types4 = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]);
359621
359624
  var isExtglobType2 = (c) => types4.has(c);
359622
359625
  var startNoTraversal2 = "(?!(?:^|/)\\.\\.?(?:$|/))";
@@ -359967,7 +359970,7 @@ var AST2 = class _AST {
359967
359970
  if (this.#root === this)
359968
359971
  this.#fillNegs();
359969
359972
  if (!this.type) {
359970
- const noEmpty = this.isStart() && this.isEnd();
359973
+ const noEmpty = this.isStart() && this.isEnd() && !this.#parts.some((s) => typeof s !== "string");
359971
359974
  const src = this.#parts.map((p) => {
359972
359975
  const [re, _, hasMagic3, uflag] = typeof p === "string" ? _AST.#parseGlob(p, this.#hasMagic, noEmpty) : p.toRegExpSource(allowDot);
359973
359976
  this.#hasMagic = this.#hasMagic || hasMagic3;
@@ -360077,10 +360080,7 @@ var AST2 = class _AST {
360077
360080
  }
360078
360081
  }
360079
360082
  if (c === "*") {
360080
- if (noEmpty && glob5 === "*")
360081
- re += starNoEmpty2;
360082
- else
360083
- re += star3;
360083
+ re += noEmpty && glob5 === "*" ? starNoEmpty2 : star3;
360084
360084
  hasMagic3 = true;
360085
360085
  continue;
360086
360086
  }
@@ -360095,13 +360095,16 @@ var AST2 = class _AST {
360095
360095
  }
360096
360096
  };
360097
360097
 
360098
- // ../../node_modules/.pnpm/minimatch@10.0.3/node_modules/minimatch/dist/esm/escape.js
360098
+ // ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/esm/escape.js
360099
360099
  init_esm_shims();
360100
- var escape3 = (s, { windowsPathsNoEscape = false } = {}) => {
360100
+ var escape3 = (s, { windowsPathsNoEscape = false, magicalBraces = false } = {}) => {
360101
+ if (magicalBraces) {
360102
+ return windowsPathsNoEscape ? s.replace(/[?*()[\]{}]/g, "[$&]") : s.replace(/[?*()[\]\\{}]/g, "\\$&");
360103
+ }
360101
360104
  return windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&");
360102
360105
  };
360103
360106
 
360104
- // ../../node_modules/.pnpm/minimatch@10.0.3/node_modules/minimatch/dist/esm/index.js
360107
+ // ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/esm/index.js
360105
360108
  var minimatch2 = (p, pattern, options = {}) => {
360106
360109
  assertValidPattern2(pattern);
360107
360110
  if (!options.nocomment && pattern.charAt(0) === "#") {
@@ -360738,16 +360741,27 @@ var Minimatch2 = class {
360738
360741
  pp[i] = twoStar;
360739
360742
  }
360740
360743
  } else if (next === void 0) {
360741
- pp[i - 1] = prev + "(?:\\/|" + twoStar + ")?";
360744
+ pp[i - 1] = prev + "(?:\\/|\\/" + twoStar + ")?";
360742
360745
  } else if (next !== GLOBSTAR2) {
360743
360746
  pp[i - 1] = prev + "(?:\\/|\\/" + twoStar + "\\/)" + next;
360744
360747
  pp[i + 1] = GLOBSTAR2;
360745
360748
  }
360746
360749
  });
360747
- return pp.filter((p) => p !== GLOBSTAR2).join("/");
360750
+ const filtered = pp.filter((p) => p !== GLOBSTAR2);
360751
+ if (this.partial && filtered.length >= 1) {
360752
+ const prefixes = [];
360753
+ for (let i = 1; i <= filtered.length; i++) {
360754
+ prefixes.push(filtered.slice(0, i).join("/"));
360755
+ }
360756
+ return "(?:" + prefixes.join("|") + ")";
360757
+ }
360758
+ return filtered.join("/");
360748
360759
  }).join("|");
360749
360760
  const [open2, close] = set5.length > 1 ? ["(?:", ")"] : ["", ""];
360750
360761
  re = "^" + open2 + re + close + "$";
360762
+ if (this.partial) {
360763
+ re = "^(?:\\/|" + open2 + re.slice(1, -1) + close + ")$";
360764
+ }
360751
360765
  if (this.negate)
360752
360766
  re = "^(?!" + re + ").+$";
360753
360767
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/linting-tools",
3
- "version": "1.132.13",
3
+ "version": "1.132.14",
4
4
  "type": "module",
5
5
  "description": "⚡ A package containing various linting tools used to validate syntax, enforce design standards, and format code in a Storm workspace.",
6
6
  "repository": {
@@ -149,5 +149,5 @@
149
149
  "vfile-reporter": "8.1.1"
150
150
  },
151
151
  "publishConfig": { "access": "public" },
152
- "gitHead": "029d9e5632710490198e9fac989e7aa85b9dd1b9"
152
+ "gitHead": "a51dd1ca06b750b49fb67496f39ae084f988ca4f"
153
153
  }