@storm-software/eslint 0.69.6 → 0.69.8
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 +1 -1
- package/dist/preset.mjs +65 -14
- package/package.json +1 -1
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
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
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) =>
|
|
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
|
-
|
|
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) => {
|
|
@@ -13798,11 +13849,11 @@ function getStormConfig(options = {
|
|
|
13798
13849
|
rules: {
|
|
13799
13850
|
// // https://eslint.org/docs/latest/rules/
|
|
13800
13851
|
// ...eslint.configs.recommended.rules,
|
|
13801
|
-
// https://typescript-eslint.io/
|
|
13802
|
-
...tsEslint
|
|
13803
|
-
|
|
13804
|
-
|
|
13805
|
-
),
|
|
13852
|
+
// // https://typescript-eslint.io/
|
|
13853
|
+
// ...tsEslint.configs.recommended.reduce(
|
|
13854
|
+
// (ret, record) => ({ ...ret, ...record.rules }),
|
|
13855
|
+
// {}
|
|
13856
|
+
// ),
|
|
13806
13857
|
// Prettier
|
|
13807
13858
|
...prettierConfig.rules,
|
|
13808
13859
|
// https://www.npmjs.com/package/eslint-plugin-unicorn
|
package/package.json
CHANGED