mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
Enable the ESLint prefer-spread
rule
Note that in a couple of spots the argument could be `undefined` and there we simply disable the rule instead. Please refer to https://eslint.org/docs/latest/rules/prefer-spread
This commit is contained in:
parent
d6d4653d80
commit
f6db7975c5
9 changed files with 37 additions and 34 deletions
|
@ -139,6 +139,7 @@
|
|||
"no-useless-escape": "error",
|
||||
"no-useless-return": "error",
|
||||
"prefer-promise-reject-errors": "error",
|
||||
"prefer-spread": "error",
|
||||
"wrap-iife": ["error", "any"],
|
||||
"yoda": ["error", "never", {
|
||||
"exceptRange": true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue