Js/Yaml: add getFile() predicate

This commit is contained in:
Arthur Baars
2023-04-11 16:01:44 +01:00
parent 3c4bd5b6a7
commit 83cd55cb29
4 changed files with 6 additions and 3 deletions

View File

@@ -62,7 +62,7 @@ module ESLint {
/** An `.eslintrc.yaml` file. */
private class EslintrcYaml extends Configuration instanceof YamlMapping {
EslintrcYaml() {
exists(string n | n = this.getFile().getBaseName() |
exists(string n | n = getFile().getBaseName() |
n = ".eslintrc.yaml" or n = ".eslintrc.yml" or n = ".eslintrc"
)
}