@storm-software/eslint 0.159.17 → 0.159.18
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.js +46 -3
- package/package.json +4 -4
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.js
CHANGED
|
@@ -2078,6 +2078,15 @@ var errorConfigSchema = z.object({
|
|
|
2078
2078
|
"A URL to a page that looks up the workspace's error messages given a specific error code"
|
|
2079
2079
|
)
|
|
2080
2080
|
}).describe("The workspace's error config used during the error process");
|
|
2081
|
+
var organizationConfigSchema = z.object({
|
|
2082
|
+
name: z.string().trim().describe("The name of the organization"),
|
|
2083
|
+
description: z.string().trim().optional().describe("A description of the organization"),
|
|
2084
|
+
logo: z.string().trim().url().optional().describe("A URL to the organization's logo image"),
|
|
2085
|
+
icon: z.string().trim().url().optional().describe("A URL to the organization's icon image"),
|
|
2086
|
+
url: z.string().trim().url().optional().describe(
|
|
2087
|
+
"A URL to a page that provides more information about the organization"
|
|
2088
|
+
)
|
|
2089
|
+
}).describe("The workspace's organization details");
|
|
2081
2090
|
var stormWorkspaceConfigSchema = z.object({
|
|
2082
2091
|
$schema: z.string().trim().default(
|
|
2083
2092
|
"https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json"
|
|
@@ -2089,7 +2098,9 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
2089
2098
|
"The name of the service/package/scope using this configuration"
|
|
2090
2099
|
),
|
|
2091
2100
|
namespace: z.string().trim().toLowerCase().optional().describe("The namespace of the package"),
|
|
2092
|
-
organization: z.string().trim().
|
|
2101
|
+
organization: organizationConfigSchema.or(z.string().trim().describe("The organization of the workspace")).optional().describe(
|
|
2102
|
+
"The organization of the workspace. This can be a string or an object containing the organization's details"
|
|
2103
|
+
),
|
|
2093
2104
|
repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
2094
2105
|
license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
|
|
2095
2106
|
homepage: z.string().trim().url().optional().describe("The homepage of the workspace"),
|
|
@@ -2853,7 +2864,13 @@ var getConfigEnv = () => {
|
|
|
2853
2864
|
medium: process.env[`${prefix}ACCOUNT_MEDIUM`] || void 0,
|
|
2854
2865
|
github: process.env[`${prefix}ACCOUNT_GITHUB`] || void 0
|
|
2855
2866
|
},
|
|
2856
|
-
organization: process.env[`${prefix}ORGANIZATION`] ||
|
|
2867
|
+
organization: process.env[`${prefix}ORG`] || process.env[`${prefix}ORGANIZATION`] || process.env[`${prefix}ORG_NAME`] || process.env[`${prefix}ORGANIZATION_NAME`] ? process.env[`${prefix}ORG_DESCRIPTION`] || process.env[`${prefix}ORGANIZATION_DESCRIPTION`] || process.env[`${prefix}ORG_URL`] || process.env[`${prefix}ORGANIZATION_URL`] || process.env[`${prefix}ORG_LOGO`] || process.env[`${prefix}ORGANIZATION_LOGO`] ? {
|
|
2868
|
+
name: process.env[`${prefix}ORG`] || process.env[`${prefix}ORGANIZATION`] || process.env[`${prefix}ORG_NAME`] || process.env[`${prefix}ORGANIZATION_NAME`],
|
|
2869
|
+
description: process.env[`${prefix}ORG_DESCRIPTION`] || process.env[`${prefix}ORGANIZATION_DESCRIPTION`] || void 0,
|
|
2870
|
+
url: process.env[`${prefix}ORG_URL`] || process.env[`${prefix}ORGANIZATION_URL`] || void 0,
|
|
2871
|
+
logo: process.env[`${prefix}ORG_LOGO`] || process.env[`${prefix}ORGANIZATION_LOGO`] || void 0,
|
|
2872
|
+
icon: process.env[`${prefix}ORG_ICON`] || process.env[`${prefix}ORGANIZATION_ICON`] || void 0
|
|
2873
|
+
} : process.env[`${prefix}ORG`] || process.env[`${prefix}ORGANIZATION`] || process.env[`${prefix}ORG_NAME`] || process.env[`${prefix}ORGANIZATION_NAME`] : void 0,
|
|
2857
2874
|
packageManager: process.env[`${prefix}PACKAGE_MANAGER`] || void 0,
|
|
2858
2875
|
license: process.env[`${prefix}LICENSE`] || void 0,
|
|
2859
2876
|
homepage: process.env[`${prefix}HOMEPAGE`] || void 0,
|
|
@@ -3061,7 +3078,33 @@ var setConfigEnv = (config2) => {
|
|
|
3061
3078
|
}
|
|
3062
3079
|
}
|
|
3063
3080
|
if (config2.organization) {
|
|
3064
|
-
|
|
3081
|
+
if (typeof config2.organization === "string") {
|
|
3082
|
+
process.env[`${prefix}ORG`] = config2.organization;
|
|
3083
|
+
process.env[`${prefix}ORG_NAME`] = config2.organization;
|
|
3084
|
+
process.env[`${prefix}ORGANIZATION`] = config2.organization;
|
|
3085
|
+
process.env[`${prefix}ORGANIZATION_NAME`] = config2.organization;
|
|
3086
|
+
} else {
|
|
3087
|
+
process.env[`${prefix}ORG`] = config2.organization.name;
|
|
3088
|
+
process.env[`${prefix}ORG_NAME`] = config2.organization.name;
|
|
3089
|
+
process.env[`${prefix}ORGANIZATION`] = config2.organization.name;
|
|
3090
|
+
process.env[`${prefix}ORGANIZATION_NAME`] = config2.organization.name;
|
|
3091
|
+
if (config2.organization.url) {
|
|
3092
|
+
process.env[`${prefix}ORG_URL`] = config2.organization.url;
|
|
3093
|
+
process.env[`${prefix}ORGANIZATION_URL`] = config2.organization.url;
|
|
3094
|
+
}
|
|
3095
|
+
if (config2.organization.description) {
|
|
3096
|
+
process.env[`${prefix}ORG_DESCRIPTION`] = config2.organization.description;
|
|
3097
|
+
process.env[`${prefix}ORGANIZATION_DESCRIPTION`] = config2.organization.description;
|
|
3098
|
+
}
|
|
3099
|
+
if (config2.organization.logo) {
|
|
3100
|
+
process.env[`${prefix}ORG_LOGO`] = config2.organization.logo;
|
|
3101
|
+
process.env[`${prefix}ORGANIZATION_LOGO`] = config2.organization.logo;
|
|
3102
|
+
}
|
|
3103
|
+
if (config2.organization.icon) {
|
|
3104
|
+
process.env[`${prefix}ORG_ICON`] = config2.organization.icon;
|
|
3105
|
+
process.env[`${prefix}ORGANIZATION_ICON`] = config2.organization.icon;
|
|
3106
|
+
}
|
|
3107
|
+
}
|
|
3065
3108
|
}
|
|
3066
3109
|
if (config2.packageManager) {
|
|
3067
3110
|
process.env[`${prefix}PACKAGE_MANAGER`] = config2.packageManager;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/eslint",
|
|
3
|
-
"version": "0.159.
|
|
3
|
+
"version": "0.159.18",
|
|
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.
|
|
165
|
+
"@storm-software/config": "^1.123.0",
|
|
166
|
+
"@storm-software/config-tools": "^1.174.0",
|
|
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",
|
|
@@ -209,7 +209,7 @@
|
|
|
209
209
|
"@eslint-types/typescript-eslint": "^7.5.0",
|
|
210
210
|
"@eslint/config-inspector": "^0.5.6",
|
|
211
211
|
"@graphql-eslint/eslint-plugin": "^4.4.0",
|
|
212
|
-
"@next/eslint-plugin-next": "^15.3.
|
|
212
|
+
"@next/eslint-plugin-next": "^15.3.4",
|
|
213
213
|
"@nx/eslint": "21.0.3",
|
|
214
214
|
"@prettier/plugin-xml": "^3.4.1",
|
|
215
215
|
"@stylistic/eslint-plugin-migrate": "^4.4.1",
|