]> git.proxmox.com Git - pve-eslint.git/blob - eslint/tests/fixtures/testers/rule-tester/no-invalid-schema.js
fdf290dc62e1dcfd73de75eab8d8aa7e1ce742f1
[pve-eslint.git] / eslint / tests / fixtures / testers / rule-tester / no-invalid-schema.js
1 /**
2 * @fileoverview Test rule to flag invalid schemas
3 * @author Brandon Mills
4 */
5
6 //------------------------------------------------------------------------------
7 // Rule Definition
8 //------------------------------------------------------------------------------
9
10 module.exports = function(context) {
11 "use strict";
12
13 var config = context.options[0];
14
15 return {
16 "Program": function(node) {
17 if (config) {
18 context.report(node, "Expected nothing.");
19 }
20 }
21 };
22 };
23
24 module.exports.schema = [
25 {
26 "enum": []
27 }
28 ];