MCPcopy Create free account
hub / github.com/callstack/react-native-paper / create

Function create

eslint-local-rules/no-import-react-forwardref.js:10–26  ·  view source on GitHub ↗
(context)

Source from the content-addressed store, hash-verified

8 schema: [],
9 },
10 create(context) {
11 return {
12 ImportDeclaration(node) {
13 if (node.source.value !== 'react') return;
14
15 for (const specifier of node.specifiers) {
16 if (specifier.type !== 'ImportSpecifier') continue;
17 if (specifier.imported.name !== 'forwardRef') continue;
18
19 context.report({
20 loc: specifier.loc,
21 message: 'Import forwardRef from src/utils/forwardRef instead',
22 });
23 }
24 },
25 };
26 },
27};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…