1
0
Fork 0
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:
Jonas Jenwald 2022-08-06 10:16:09 +02:00
parent d6d4653d80
commit f6db7975c5
9 changed files with 37 additions and 34 deletions

View file

@ -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,