Merge pull request #11165 from Snuffleupagus/eslint-return-rules

Enable a couple of `return` related ESLint rules
This commit is contained in:
Tim van der Meij 2019-09-20 21:59:25 +02:00 committed by GitHub
commit e91836f832
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -87,6 +87,7 @@
"no-octal-escape": "error",
"no-octal": "error",
"no-redeclare": "error",
"no-return-await": "error",
"no-self-assign": "error",
"no-self-compare": "error",
"no-throw-literal": "error",
@ -95,6 +96,7 @@
"no-useless-call": "error",
"no-useless-catch": "error",
"no-useless-concat": "error",
"no-useless-return": "error",
"prefer-promise-reject-errors": "error",
"wrap-iife": ["error", "any"],
"yoda": ["error", "never", {

View File

@ -292,7 +292,6 @@ window.addEventListener('keydown', function(event) {
} else {
event.stopPropagation();
}
return;
}
}, true);
if (hasAttachEvent) {