@code-pushup/eslint-plugin 0.4.2 → 0.4.4
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/bin.js +7 -8
- package/index.js +8 -9
- package/package.json +1 -1
package/bin.js
CHANGED
|
@@ -236,19 +236,18 @@ var auditGroupRefSchema = weightedRefSchema(
|
|
|
236
236
|
"Weighted references to audits",
|
|
237
237
|
"Reference slug to an audit within this plugin (e.g. 'max-lines')"
|
|
238
238
|
);
|
|
239
|
+
var auditGroupMetaSchema = metaSchema({
|
|
240
|
+
titleDescription: "Descriptive name for the group",
|
|
241
|
+
descriptionDescription: "Description of the group (markdown)",
|
|
242
|
+
docsUrlDescription: "Group documentation site",
|
|
243
|
+
description: "Group metadata"
|
|
244
|
+
});
|
|
239
245
|
var auditGroupSchema = scorableSchema(
|
|
240
246
|
'An audit group aggregates a set of audits into a single score which can be referenced from a category. E.g. the group slug "performance" groups audits and can be referenced in a category',
|
|
241
247
|
auditGroupRefSchema,
|
|
242
248
|
getDuplicateRefsInGroups,
|
|
243
249
|
duplicateRefsInGroupsErrorMsg
|
|
244
|
-
).merge(
|
|
245
|
-
metaSchema({
|
|
246
|
-
titleDescription: "Descriptive name for the group",
|
|
247
|
-
descriptionDescription: "Description of the group (markdown)",
|
|
248
|
-
docsUrlDescription: "Group documentation site",
|
|
249
|
-
description: "Group metadata"
|
|
250
|
-
})
|
|
251
|
-
);
|
|
250
|
+
).merge(auditGroupMetaSchema);
|
|
252
251
|
var auditGroupsSchema = z5.array(auditGroupSchema, {
|
|
253
252
|
description: "List of groups"
|
|
254
253
|
}).optional().refine(
|
package/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { fileURLToPath } from "url";
|
|
|
5
5
|
|
|
6
6
|
// packages/plugin-eslint/package.json
|
|
7
7
|
var name = "@code-pushup/eslint-plugin";
|
|
8
|
-
var version = "0.4.
|
|
8
|
+
var version = "0.4.4";
|
|
9
9
|
|
|
10
10
|
// packages/plugin-eslint/src/lib/config.ts
|
|
11
11
|
import { z } from "zod";
|
|
@@ -258,19 +258,18 @@ var auditGroupRefSchema = weightedRefSchema(
|
|
|
258
258
|
"Weighted references to audits",
|
|
259
259
|
"Reference slug to an audit within this plugin (e.g. 'max-lines')"
|
|
260
260
|
);
|
|
261
|
+
var auditGroupMetaSchema = metaSchema({
|
|
262
|
+
titleDescription: "Descriptive name for the group",
|
|
263
|
+
descriptionDescription: "Description of the group (markdown)",
|
|
264
|
+
docsUrlDescription: "Group documentation site",
|
|
265
|
+
description: "Group metadata"
|
|
266
|
+
});
|
|
261
267
|
var auditGroupSchema = scorableSchema(
|
|
262
268
|
'An audit group aggregates a set of audits into a single score which can be referenced from a category. E.g. the group slug "performance" groups audits and can be referenced in a category',
|
|
263
269
|
auditGroupRefSchema,
|
|
264
270
|
getDuplicateRefsInGroups,
|
|
265
271
|
duplicateRefsInGroupsErrorMsg
|
|
266
|
-
).merge(
|
|
267
|
-
metaSchema({
|
|
268
|
-
titleDescription: "Descriptive name for the group",
|
|
269
|
-
descriptionDescription: "Description of the group (markdown)",
|
|
270
|
-
docsUrlDescription: "Group documentation site",
|
|
271
|
-
description: "Group metadata"
|
|
272
|
-
})
|
|
273
|
-
);
|
|
272
|
+
).merge(auditGroupMetaSchema);
|
|
274
273
|
var auditGroupsSchema = z6.array(auditGroupSchema, {
|
|
275
274
|
description: "List of groups"
|
|
276
275
|
}).optional().refine(
|