Merge pull request #11165 from Snuffleupagus/eslint-return-rules
Enable a couple of `return` related ESLint rules
This commit is contained in:
commit
e91836f832
@ -87,6 +87,7 @@
|
|||||||
"no-octal-escape": "error",
|
"no-octal-escape": "error",
|
||||||
"no-octal": "error",
|
"no-octal": "error",
|
||||||
"no-redeclare": "error",
|
"no-redeclare": "error",
|
||||||
|
"no-return-await": "error",
|
||||||
"no-self-assign": "error",
|
"no-self-assign": "error",
|
||||||
"no-self-compare": "error",
|
"no-self-compare": "error",
|
||||||
"no-throw-literal": "error",
|
"no-throw-literal": "error",
|
||||||
@ -95,6 +96,7 @@
|
|||||||
"no-useless-call": "error",
|
"no-useless-call": "error",
|
||||||
"no-useless-catch": "error",
|
"no-useless-catch": "error",
|
||||||
"no-useless-concat": "error",
|
"no-useless-concat": "error",
|
||||||
|
"no-useless-return": "error",
|
||||||
"prefer-promise-reject-errors": "error",
|
"prefer-promise-reject-errors": "error",
|
||||||
"wrap-iife": ["error", "any"],
|
"wrap-iife": ["error", "any"],
|
||||||
"yoda": ["error", "never", {
|
"yoda": ["error", "never", {
|
||||||
|
@ -292,7 +292,6 @@ window.addEventListener('keydown', function(event) {
|
|||||||
} else {
|
} else {
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
}
|
}
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
}, true);
|
}, true);
|
||||||
if (hasAttachEvent) {
|
if (hasAttachEvent) {
|
||||||
|
Loading…
Reference in New Issue
Block a user