(context)
| 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 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…