@storm-software/eslint 0.69.7 → 0.69.9

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-0.69.6-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-0.69.8-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/dist/preset.mjs CHANGED
@@ -13291,6 +13291,51 @@ isArray$1.isArray = isArray;
13291
13291
 
13292
13292
  } (dist$3));
13293
13293
 
13294
+ const CODE_BLOCK = "**/*.md{,x}/*";
13295
+ const CODE_FILE = "**/*.{,c,m}{j,t}s{,x}";
13296
+ const TS_FILE = "**/*.{,c,m}ts{,x}";
13297
+ const ACRONYMS_LIST = [
13298
+ "API",
13299
+ "ASCII",
13300
+ "CPU",
13301
+ "CSS",
13302
+ "DNS",
13303
+ "EOF",
13304
+ "GUID",
13305
+ "HTML",
13306
+ "HTTP",
13307
+ "HTTPS",
13308
+ "ID",
13309
+ "IP",
13310
+ "JSON",
13311
+ "LHS",
13312
+ "OEM",
13313
+ "PP",
13314
+ "QA",
13315
+ "RAM",
13316
+ "RHS",
13317
+ "RPC",
13318
+ "RSS",
13319
+ "SLA",
13320
+ "SMTP",
13321
+ "SQL",
13322
+ "SSH",
13323
+ "SSL",
13324
+ "TCP",
13325
+ "TLS",
13326
+ "TTL",
13327
+ "UDP",
13328
+ "UI",
13329
+ "UID",
13330
+ "UUID",
13331
+ "URI",
13332
+ "URL",
13333
+ "UTF",
13334
+ "VM",
13335
+ "XML",
13336
+ "XSS"
13337
+ ];
13338
+
13294
13339
  const getFileBanner = (name = "") => {
13295
13340
  if (!name) {
13296
13341
  name = process.env.STORM_NAMESPACE || "";
@@ -13304,7 +13349,12 @@ const getFileBanner = (name = "") => {
13304
13349
  if (titleName?.startsWith("@")) {
13305
13350
  titleName = titleName.slice(1);
13306
13351
  }
13307
- titleName = (titleName.charAt(0).toUpperCase() + titleName.slice(1)).split("-").filter((word) => word && word.length > 0).map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join(" ");
13352
+ titleName = (titleName.charAt(0).toUpperCase() + titleName.slice(1)).split("-").filter((word) => word && word.length > 0).map((word) => {
13353
+ if (ACRONYMS_LIST.includes(word.toUpperCase())) {
13354
+ return word.toUpperCase();
13355
+ }
13356
+ return word.charAt(0).toUpperCase() + word.slice(1);
13357
+ }).join(" ");
13308
13358
  }
13309
13359
  return `-------------------------------------------------------------------
13310
13360
 
@@ -13623,25 +13673,26 @@ const plugin = {
13623
13673
  },
13624
13674
  processors: {}
13625
13675
  };
13626
- plugin.configs.recommended = [
13676
+ plugin.configs && (plugin.configs.recommended = [
13627
13677
  { name: "banner/recommended/plugin", plugins: { banner: plugin } },
13628
13678
  {
13629
13679
  name: "banner/recommended/code-files",
13630
13680
  files: [
13631
- "**/*.{,c,m}{j,t}s{,x}",
13632
- "!tools/**/*",
13681
+ CODE_FILE,
13633
13682
  "!docs/**/*",
13634
13683
  "!crates/**/*",
13635
- "!.*/**/*"
13684
+ "!tmp/**/*",
13685
+ "!dist/**/*",
13686
+ "!coverage/**/*",
13687
+ "!node_modules/**/*",
13688
+ "!.cache/**/*",
13689
+ "!.nx/**/*"
13636
13690
  ],
13637
13691
  rules: {
13638
13692
  "banner/banner": ["error", { commentType: "block", numNewlines: 2 }]
13639
13693
  }
13640
13694
  }
13641
- ];
13642
-
13643
- const CODE_BLOCK = "**/*.md{,x}/*";
13644
- const TS_FILE = "**/*.{,c,m}ts{,x}";
13695
+ ]);
13645
13696
 
13646
13697
  const formatConfig = (name, config = []) => {
13647
13698
  return config.map((config2, index) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/eslint",
3
- "version": "0.69.7",
3
+ "version": "0.69.9",
4
4
  "type": "module",
5
5
  "description": "⚡ A package containing the base ESLint configuration used by Storm Software across many projects.",
6
6
  "repository": {