Skip to content

Commit 8cfec3f

Browse files
committed
fix more lint violations
1 parent 056da29 commit 8cfec3f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/lib/rules/require-meta-schema.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,13 @@ ruleTester.run('require-meta-schema', rule, {
140140
};
141141
`,
142142
options: [{ requireSchemaPropertyWhenOptionless: false }],
143+
name: 'no schema (requireSchemaPropertyWhenOptionless: false)',
143144
},
144145
{
145146
// requireSchemaPropertyWhenOptionless = false, no `meta`.
146147
code: 'module.exports = { create(context) {} };',
147148
options: [{ requireSchemaPropertyWhenOptionless: false }],
149+
name: 'no meta (requireSchemaPropertyWhenOptionless: false)',
148150
},
149151
// Spread.
150152
`
@@ -244,6 +246,7 @@ schema: []
244246
],
245247
},
246248
],
249+
name: 'no schema (requireSchemaPropertyWhenOptionless: true)',
247250
},
248251
{
249252
// ESM
@@ -323,6 +326,7 @@ schema: [] },
323326
output: null,
324327
options: [{ requireSchemaPropertyWhenOptionless: false }],
325328
errors: [{ messageId: 'wrongType', type: 'Literal', suggestions: [] }],
329+
name: 'schema is null (requireSchemaPropertyWhenOptionless: false)',
326330
},
327331
{
328332
code: `
@@ -406,6 +410,7 @@ schema: [] },
406410
errors: [
407411
{ messageId: 'foundOptionsUsage', type: 'Property', suggestions: [] },
408412
],
413+
name: 'empty schema (requireSchemaPropertyWhenOptionless: false)',
409414
},
410415
{
411416
// No schema, but using rule options, requireSchemaPropertyWhenOptionless = false.
@@ -424,6 +429,7 @@ schema: [] },
424429
suggestions: [],
425430
},
426431
],
432+
name: 'no schema with rule options (requireSchemaPropertyWhenOptionless: false)',
427433
},
428434
{
429435
// No schema, but using rule options, should have no suggestions.

0 commit comments

Comments
 (0)