Update ESLint to v6 (#6364)
This commit is contained in:
1 parent
7d0175ca90
commit
0e77cd3d33
4 files changed
+173
-90
No files matched your search
+1
-1
@@ -39,7 +39,7 @@ function resolveParser(opts, parsers) {
|
||||
}
|
||||
|
||||
if (typeof opts.parser === "string") {
|
||||
if (parsers.hasOwnProperty(opts.parser)) {
|
||||
if (Object.prototype.hasOwnProperty.call(parsers, opts.parser)) {
|
||||
return parsers[opts.parser];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user