]> git.proxmox.com Git - pve-eslint.git/blob - eslint/tests/fixtures/rules/custom-rule.js
import 8.41.0 source
[pve-eslint.git] / eslint / tests / fixtures / rules / custom-rule.js
1 module.exports = {
2 meta: {
3 schema: []
4 },
5 create(context) {
6
7 "use strict";
8
9 return {
10 "Identifier": function(node) {
11 if (node.name === "foo") {
12 context.report(node, "Identifier cannot be named 'foo'.");
13 }
14 }
15 };
16 }
17 };