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

Function Function

build-system/eslint-rules/no-function-async.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.async) {
7 return;
8 }
9 context.report({
10 node,
11 message: 'Async functions are foribdden.',
12 });
13 },
14 };
15};

Callers 3

bundle.jsFile · 0.50
ResizeObserver.jsFile · 0.50
installResizeObserverFunction · 0.50

Calls 1

reportMethod · 0.45

Tested by

no test coverage detected