@storm-software/eslint 0.113.5 → 0.114.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 +1 -1
- package/dist/preset.cjs +5 -2
- package/dist/preset.js +6 -3
- 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.cjs
CHANGED
|
@@ -141,6 +141,8 @@ var ColorConfigMapSchema = _zod2.default.union([
|
|
|
141
141
|
}),
|
|
142
142
|
_zod2.default.record(_zod2.default.string(), ColorConfigSchema)
|
|
143
143
|
]);
|
|
144
|
+
var ExtendsItemSchema = _zod2.default.string().trim().describe("The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration.");
|
|
145
|
+
var ExtendsSchema = ExtendsItemSchema.or(_zod2.default.array(ExtendsItemSchema)).describe("The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration.");
|
|
144
146
|
var WorkspaceBotConfigSchema = _zod2.default.object({
|
|
145
147
|
name: _zod2.default.string().trim().default("Stormie-Bot").describe("The workspace bot user's name (this is the bot that will be used to perform various tasks)"),
|
|
146
148
|
email: _zod2.default.string().trim().email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
|
|
@@ -155,11 +157,11 @@ var WorkspaceDirectoryConfigSchema = _zod2.default.object({
|
|
|
155
157
|
}).describe("Various directories used by the workspace to store data, cache, and configuration files");
|
|
156
158
|
var StormConfigSchema = _zod2.default.object({
|
|
157
159
|
$schema: _zod2.default.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
|
|
158
|
-
extends:
|
|
160
|
+
extends: ExtendsSchema.optional(),
|
|
159
161
|
name: _zod2.default.string().trim().toLowerCase().optional().describe("The name of the service/package/scope using this configuration"),
|
|
160
162
|
namespace: _zod2.default.string().trim().toLowerCase().optional().describe("The namespace of the package"),
|
|
161
163
|
organization: _zod2.default.string().trim().default("storm-software").describe("The organization of the workspace"),
|
|
162
|
-
repository: _zod2.default.string().trim().
|
|
164
|
+
repository: _zod2.default.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
163
165
|
license: _zod2.default.string().trim().default("Apache-2.0").describe("The license type of the package"),
|
|
164
166
|
homepage: _zod2.default.string().trim().url().default(STORM_DEFAULT_HOMEPAGE).describe("The homepage of the workspace"),
|
|
165
167
|
docs: _zod2.default.string().trim().url().default(STORM_DEFAULT_DOCS).describe("The base documentation site for the workspace"),
|
|
@@ -204,6 +206,7 @@ var StormConfigSchema = _zod2.default.object({
|
|
|
204
206
|
|
|
205
207
|
// ../config-tools/src/utilities/get-default-config.ts
|
|
206
208
|
var _fs = require('fs');
|
|
209
|
+
var _promises = require('fs/promises');
|
|
207
210
|
var _path = require('path');
|
|
208
211
|
|
|
209
212
|
// ../config-tools/src/utilities/correct-paths.ts
|
package/dist/preset.js
CHANGED
|
@@ -141,6 +141,8 @@ var ColorConfigMapSchema = z.union([
|
|
|
141
141
|
}),
|
|
142
142
|
z.record(z.string(), ColorConfigSchema)
|
|
143
143
|
]);
|
|
144
|
+
var ExtendsItemSchema = z.string().trim().describe("The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration.");
|
|
145
|
+
var ExtendsSchema = ExtendsItemSchema.or(z.array(ExtendsItemSchema)).describe("The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration.");
|
|
144
146
|
var WorkspaceBotConfigSchema = z.object({
|
|
145
147
|
name: z.string().trim().default("Stormie-Bot").describe("The workspace bot user's name (this is the bot that will be used to perform various tasks)"),
|
|
146
148
|
email: z.string().trim().email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
|
|
@@ -155,11 +157,11 @@ var WorkspaceDirectoryConfigSchema = z.object({
|
|
|
155
157
|
}).describe("Various directories used by the workspace to store data, cache, and configuration files");
|
|
156
158
|
var StormConfigSchema = z.object({
|
|
157
159
|
$schema: z.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
|
|
158
|
-
extends:
|
|
160
|
+
extends: ExtendsSchema.optional(),
|
|
159
161
|
name: z.string().trim().toLowerCase().optional().describe("The name of the service/package/scope using this configuration"),
|
|
160
162
|
namespace: z.string().trim().toLowerCase().optional().describe("The namespace of the package"),
|
|
161
163
|
organization: z.string().trim().default("storm-software").describe("The organization of the workspace"),
|
|
162
|
-
repository: z.string().trim().
|
|
164
|
+
repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
163
165
|
license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
|
|
164
166
|
homepage: z.string().trim().url().default(STORM_DEFAULT_HOMEPAGE).describe("The homepage of the workspace"),
|
|
165
167
|
docs: z.string().trim().url().default(STORM_DEFAULT_DOCS).describe("The base documentation site for the workspace"),
|
|
@@ -203,7 +205,8 @@ var StormConfigSchema = z.object({
|
|
|
203
205
|
}).describe("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.");
|
|
204
206
|
|
|
205
207
|
// ../config-tools/src/utilities/get-default-config.ts
|
|
206
|
-
import { existsSync as existsSync2
|
|
208
|
+
import { existsSync as existsSync2 } from "node:fs";
|
|
209
|
+
import { readFile } from "node:fs/promises";
|
|
207
210
|
import { join as join2 } from "node:path";
|
|
208
211
|
|
|
209
212
|
// ../config-tools/src/utilities/correct-paths.ts
|
package/package.json
CHANGED