JS: Migrate to new JSON API

This commit is contained in:
Asger Feldthaus
2021-04-09 11:37:57 +01:00
parent 7c13163413
commit 929d9da4b4
5 changed files with 21 additions and 27 deletions

View File

@@ -65,8 +65,8 @@ predicate isReactForJSX(UnusedLocal v) {
v.getName() =
tsconfig
.getPropValue("compilerOptions")
.(JSONObject)
.getPropStringValue(["jsxFactory", "jsxFragmentFactory"])
.getPropValue(["jsxFactory", "jsxFragmentFactory"])
.getStringValue()
)
)
}