Files
codeql/javascript/ql/examples/snippets/importfrom.ql
2025-04-29 13:23:47 +02:00

16 lines
318 B
Plaintext

/**
* @id js/examples/importfrom
* @name Imports from 'react'
* @description Finds import statements that import from module 'react'
* @tags module
* import
* ECMAScript 6
* ECMAScript 2015
*/
import javascript
from ImportDeclaration id
where id.getImportedPathString() = "react"
select id