mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
Js/Yaml: add getFile() predicate
This commit is contained in:
@@ -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"
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user