File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
javascript/ql/lib/semmle/javascript/linters Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ module ESLint {
60
60
}
61
61
62
62
/** An `.eslintrc.yaml` file. */
63
- private class EslintrcYaml extends Configuration instanceof YamlMapping {
63
+ private class EslintrcYaml extends Configuration instanceof YamlMapping , YamlDocument {
64
64
EslintrcYaml ( ) {
65
65
exists ( string n | n = getFile ( ) .getBaseName ( ) |
66
66
n = ".eslintrc.yaml" or n = ".eslintrc.yml" or n = ".eslintrc"
@@ -72,7 +72,9 @@ module ESLint {
72
72
73
73
/** An ESLint configuration object in YAML format. */
74
74
private class YamlConfigurationObject extends ConfigurationObject instanceof YamlMapping {
75
- override Configuration getConfiguration ( ) { this = result .( YamlMapping ) .getValue ( _) }
75
+ override Configuration getConfiguration ( ) {
76
+ this = result .( EslintrcYaml ) .( YamlMapping ) .getValue ( _)
77
+ }
76
78
77
79
override boolean getBooleanProperty ( string p ) {
78
80
exists ( string v | v = super .lookup ( p ) .( YamlBool ) .getValue ( ) |
Original file line number Diff line number Diff line change @@ -2,5 +2,3 @@ name: codeql/yaml
2
2
version : 0.0.1-dev
3
3
groups : shared
4
4
library : true
5
- dependencies :
6
- codeql/util : ${workspace}
You can’t perform that action at this time.
0 commit comments