JS: Autoformat

This commit is contained in:
Asger Feldthaus
2021-04-13 10:16:41 +01:00
parent 929d9da4b4
commit e77117f902
2 changed files with 4 additions and 17 deletions

View File

@@ -40,9 +40,7 @@ class PackageJSON extends JSONObject {
ContributorInfo getAuthor() { result = getPropValue("author") }
/** Gets information for a contributor to this package. */
ContributorInfo getAContributor() {
result = getPropValue("contributors").getElementValue(_)
}
ContributorInfo getAContributor() { result = getPropValue("contributors").getElementValue(_) }
/** Gets the array of files for this package. */
JSONArray getFiles() { result = getPropValue("files") }

View File

@@ -233,11 +233,7 @@ private module TypeScriptOutDir {
tsconfig.getFile().getBaseName().regexpMatch("tsconfig.*\\.json") and
tsconfig.isTopLevel() and
tsconfig.getFile().getParentContainer() = parent and
result =
tsconfig
.getPropValue("compilerOptions")
.getPropValue("outDir")
.getStringValue()
result = tsconfig.getPropValue("compilerOptions").getPropValue("outDir").getStringValue()
}
/**
@@ -279,10 +275,7 @@ private module TypeScriptOutDir {
pragma[inline]
private string getARootDirFromInclude(JSONObject tsconfig) {
result =
getRootFolderFromPath(tsconfig
.getPropValue("include")
.getElementValue(_)
.getStringValue())
getRootFolderFromPath(tsconfig.getPropValue("include").getElementValue(_).getStringValue())
}
/**
@@ -290,11 +283,7 @@ private module TypeScriptOutDir {
*/
pragma[inline]
private string getRootDir(JSONObject tsconfig) {
result =
tsconfig
.getPropValue("compilerOptions")
.getPropValue("rootDir")
.getStringValue()
result = tsconfig.getPropValue("compilerOptions").getPropValue("rootDir").getStringValue()
}
}