mirror of
https://github.com/github/codeql.git
synced 2026-05-05 13:45:19 +02:00
detect uses of jsxFactory and jsxFragmentFactory in js/unused-local-variable
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"jsx": "react",
|
||||
"jsxFactory": "m"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
import {m} from 'some-react-library';
|
||||
|
||||
export default function doAThing() {
|
||||
return <span>foo</span>;
|
||||
}
|
||||
Reference in New Issue
Block a user