mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
Merge pull request #11165 from Snuffleupagus/eslint-return-rules
Enable a couple of `return` related ESLint rules
This commit is contained in:
commit
e91836f832
2 changed files with 2 additions and 1 deletions
|
@ -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", {
|
||||
|
|
|
@ -292,7 +292,6 @@ window.addEventListener('keydown', function(event) {
|
|||
} else {
|
||||
event.stopPropagation();
|
||||
}
|
||||
return;
|
||||
}
|
||||
}, true);
|
||||
if (hasAttachEvent) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue