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