MCPcopy Create free account
hub / github.com/ampproject/amphtml / Function

Function Function

build-system/eslint-rules/no-function-generator.js:5–13  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

3module.exports = function (context) {
4 return {
5 Function(node) {
6 if (!node.generator) {
7 return;
8 }
9 context.report({
10 node,
11 message: 'Generator functions are foribdden.',
12 });
13 },
14 };
15};

Callers

nothing calls this directly

Calls 1

reportMethod · 0.45

Tested by

no test coverage detected