]>
Commit | Line | Data |
---|---|---|
eb39fafa DC |
1 | /** |
2 | * @fileoverview Test rule to flag invalid schemas | |
3 | * @author Brandon Mills | |
4 | */ | |
5 | ||
8f9d1d4d DC |
6 | "use strict"; |
7 | ||
eb39fafa DC |
8 | //------------------------------------------------------------------------------ |
9 | // Rule Definition | |
10 | //------------------------------------------------------------------------------ | |
11 | ||
8f9d1d4d DC |
12 | module.exports = { |
13 | meta: { | |
14 | type: "problem", | |
15 | schema: [{ | |
16 | "enum": [] | |
17 | }] | |
18 | }, | |
19 | create(context) { | |
20 | return { | |
21 | "Program": function(node) { | |
22 | if (config) { | |
23 | context.report(node, "Expected nothing."); | |
24 | } | |
eb39fafa | 25 | } |
8f9d1d4d DC |
26 | }; |
27 | }, | |
eb39fafa | 28 | }; |