@storm-software/eslint 0.159.18 → 0.160.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/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 -->
|
|
@@ -28,17 +28,33 @@ var getFileBanner = (name = "", workspaceConfig) => {
|
|
|
28
28
|
}).join(" ");
|
|
29
29
|
}
|
|
30
30
|
const license = (process.env.STORM_LICENSE || workspaceConfig?.license || "Apache-2.0").split(" ").filter((word) => word && word.toLowerCase() !== "license").join(" ");
|
|
31
|
+
const organization = process.env.STORM_ORG_NAME || process.env.STORM_ORGANIZATION_NAME || process.env.STORM_ORG || process.env.STORM_ORGANIZATION || (workspaceConfig?.organization && (typeof workspaceConfig.organization === "string" || typeof workspaceConfig.organization.name === "string") ? typeof workspaceConfig.organization === "string" ? workspaceConfig.organization : workspaceConfig.organization.name : "storm-software");
|
|
31
32
|
return ` -------------------------------------------------------------------
|
|
32
33
|
|
|
33
|
-
${padding}\u26A1
|
|
34
|
+
${padding}\u26A1 ${(organization.charAt(0).toUpperCase() + organization.slice(1)).split("-").filter((word) => word && word.length > 0).map((word) => {
|
|
35
|
+
if (ACRONYMS_LIST.includes(word.toUpperCase())) {
|
|
36
|
+
return word.toUpperCase();
|
|
37
|
+
}
|
|
38
|
+
return word.charAt(0).toUpperCase() + word.slice(1);
|
|
39
|
+
}).join(" ")} ${titleName ? `- ${titleName}` : ""}
|
|
34
40
|
|
|
35
|
-
This code was released as part of ${titleName ? `the ${titleName}` :
|
|
36
|
-
|
|
41
|
+
This code was released as part of ${titleName ? `the ${titleName}` : `a ${(organization.charAt(0).toUpperCase() + organization.slice(1)).split("-").filter((word) => word && word.length > 0).map((word) => {
|
|
42
|
+
if (ACRONYMS_LIST.includes(word.toUpperCase())) {
|
|
43
|
+
return word.toUpperCase();
|
|
44
|
+
}
|
|
45
|
+
return word.charAt(0).toUpperCase() + word.slice(1);
|
|
46
|
+
}).join(" ")}`} project. ${titleName ? titleName : "The project"}
|
|
47
|
+
is maintained by ${(organization.charAt(0).toUpperCase() + organization.slice(1)).split("-").filter((word) => word && word.length > 0).map((word) => {
|
|
48
|
+
if (ACRONYMS_LIST.includes(word.toUpperCase())) {
|
|
49
|
+
return word.toUpperCase();
|
|
50
|
+
}
|
|
51
|
+
return word.charAt(0).toUpperCase() + word.slice(1);
|
|
52
|
+
}).join(" ")} under the ${license} license, and is
|
|
37
53
|
free for commercial and private use. For more information, please visit
|
|
38
54
|
our licensing page at ${process.env.STORM_LICENSING || workspaceConfig?.licensing || `https://stormsoftware.com/${name ? `projects/${name}/` : ""}license`}.
|
|
39
55
|
|
|
40
56
|
Website: ${process.env.STORM_HOMEPAGE || workspaceConfig?.homepage || "https://stormsoftware.com"}
|
|
41
|
-
Repository: ${process.env.STORM_REPOSITORY || workspaceConfig?.repository || `https://github.com
|
|
57
|
+
Repository: ${process.env.STORM_REPOSITORY || workspaceConfig?.repository || `https://github.com/${organization}${name ? `/${name}` : ""}`}
|
|
42
58
|
Documentation: ${process.env.STORM_DOCS || workspaceConfig?.docs || `https://docs.stormsoftware.com/${name ? `projects/${name}/` : ""}`}
|
|
43
59
|
Contact: ${(process.env.STORM_HOMEPAGE || workspaceConfig?.homepage || "https://stormsoftware.com").endsWith("/") ? (process.env.STORM_HOMEPAGE || workspaceConfig?.homepage || "https://stormsoftware.com").slice(-1) : process.env.STORM_HOMEPAGE || workspaceConfig?.homepage || "https://stormsoftware.com"}/contact
|
|
44
60
|
|
package/dist/preset.js
CHANGED
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
} from "./chunk-S2VVDLUR.js";
|
|
12
12
|
import {
|
|
13
13
|
banner_plugin_default
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-MMEG4ETM.js";
|
|
15
15
|
import {
|
|
16
16
|
getFileBanner
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-IKNCTFX4.js";
|
|
18
18
|
import {
|
|
19
19
|
GLOB_ASTRO,
|
|
20
20
|
GLOB_ASTRO_TS,
|
|
@@ -1636,10 +1636,10 @@ var noDuplicateCatalogItem = createEslintRule({
|
|
|
1636
1636
|
default: json.catalog
|
|
1637
1637
|
};
|
|
1638
1638
|
const doc = workspace2.getDocument();
|
|
1639
|
-
for (const [catalog,
|
|
1640
|
-
if (!
|
|
1639
|
+
for (const [catalog, object2] of Object.entries(catalogs)) {
|
|
1640
|
+
if (!object2)
|
|
1641
1641
|
continue;
|
|
1642
|
-
for (const key of Object.keys(
|
|
1642
|
+
for (const key of Object.keys(object2)) {
|
|
1643
1643
|
if (allow.includes(key))
|
|
1644
1644
|
continue;
|
|
1645
1645
|
if (exists.has(key)) {
|
|
@@ -1937,7 +1937,7 @@ init_esm_shims();
|
|
|
1937
1937
|
|
|
1938
1938
|
// ../config/src/schema.ts
|
|
1939
1939
|
init_esm_shims();
|
|
1940
|
-
import z from "zod";
|
|
1940
|
+
import * as z from "zod/v4";
|
|
1941
1941
|
var DarkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d1e22").describe("The dark background color of the workspace");
|
|
1942
1942
|
var LightColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
|
|
1943
1943
|
var BrandColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The primary brand specific color of the workspace");
|
|
@@ -2089,9 +2089,9 @@ var organizationConfigSchema = z.object({
|
|
|
2089
2089
|
}).describe("The workspace's organization details");
|
|
2090
2090
|
var stormWorkspaceConfigSchema = z.object({
|
|
2091
2091
|
$schema: z.string().trim().default(
|
|
2092
|
-
"https://
|
|
2093
|
-
).
|
|
2094
|
-
"The URL to the JSON schema file that describes the Storm configuration file"
|
|
2092
|
+
"https://public.storm-cdn.com/schemas/storm-workspace.schema.json"
|
|
2093
|
+
).describe(
|
|
2094
|
+
"The URL or file path to the JSON schema file that describes the Storm configuration file"
|
|
2095
2095
|
),
|
|
2096
2096
|
extends: ExtendsSchema.optional(),
|
|
2097
2097
|
name: z.string().trim().toLowerCase().optional().describe(
|
|
@@ -2153,7 +2153,7 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
2153
2153
|
colors: ColorConfigSchema.or(ColorConfigMapSchema).describe(
|
|
2154
2154
|
"Storm theme config values used for styling various package elements"
|
|
2155
2155
|
),
|
|
2156
|
-
extensions: z.record(z.any()).optional().default({}).describe("Configuration of each used extension")
|
|
2156
|
+
extensions: z.record(z.string(), z.any()).optional().default({}).describe("Configuration of each used extension")
|
|
2157
2157
|
}).describe(
|
|
2158
2158
|
"Storm Workspace config values used during various dev-ops processes. This type is a combination of the StormPackageConfig and StormProject types. It represents the config of the entire monorepo."
|
|
2159
2159
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/eslint",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.160.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": {
|
|
@@ -162,8 +162,8 @@
|
|
|
162
162
|
"@eslint/eslintrc": "^3.3.1",
|
|
163
163
|
"@eslint/markdown": "^6.5.0",
|
|
164
164
|
"@nx/eslint-plugin": "21.0.3",
|
|
165
|
-
"@storm-software/config": "^1.
|
|
166
|
-
"@storm-software/config-tools": "^1.174.
|
|
165
|
+
"@storm-software/config": "^1.124.1",
|
|
166
|
+
"@storm-software/config-tools": "^1.174.2",
|
|
167
167
|
"@stylistic/eslint-plugin": "^4.4.1",
|
|
168
168
|
"@typescript-eslint/eslint-plugin": "^8.34.1",
|
|
169
169
|
"@typescript-eslint/parser": "^8.34.1",
|