]>
Commit | Line | Data |
---|---|---|
f2a92ac6 DC |
1 | module.exports = { |
2 | meta: { | |
3 | schema: [] | |
4 | }, | |
5 | create(context) { | |
eb39fafa | 6 | |
f2a92ac6 | 7 | "use strict"; |
eb39fafa | 8 | |
f2a92ac6 DC |
9 | return { |
10 | "Identifier": function(node) { | |
11 | if (node.name === "foo") { | |
12 | context.report(node, "Identifier cannot be named 'foo'."); | |
13 | } | |
eb39fafa | 14 | } |
f2a92ac6 DC |
15 | }; |
16 | } | |
eb39fafa | 17 | }; |