mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
17 lines
350 B
Plaintext
17 lines
350 B
Plaintext
/**
|
|
* @id js/examples/exportfn
|
|
* @name Default exports exporting a function
|
|
* @description Finds 'default' exports that export a function
|
|
* @tags module
|
|
* export
|
|
* default export
|
|
* ECMAScript 6
|
|
* ECMAScript 2015
|
|
*/
|
|
|
|
import javascript
|
|
|
|
from ExportDefaultDeclaration e
|
|
where e.getOperand() instanceof Function
|
|
select e
|