mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
16 lines
318 B
Plaintext
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
|