Files
codeql/javascript/ql/examples/snippets/importfrom.ql
2019-08-02 15:33:40 +02:00

16 lines
323 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.getImportedPath().getValue() = "react"
select id