Files
codeql/javascript/ql/examples/snippets/importfrom.ql
2019-07-26 17:47:11 +02:00

14 lines
292 B
Plaintext

/**
* @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.getImportedPath().getValue() = "react"
select id