diff --git a/.eslintrc.js b/.eslintrc.js index ba8803d0b..3c9fd38f1 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -29,7 +29,7 @@ module.exports = { "no-multiple-empty-lines": ["error", { "max": 2 }], "no-self-assign": ["error", { "props": false }], "no-trailing-spaces": ["error"], - "no-unused-vars": ["error", { argsIgnorePattern: "_*" }], + "no-unused-vars": ["error", { argsIgnorePattern: "_*" , "ignoreRestSiblings": true}], "no-useless-escape": "off", "no-var": ["error"], "prefer-const": ["error"], diff --git a/src/core/drive/navigator.js b/src/core/drive/navigator.js index da361325e..3679052e1 100644 --- a/src/core/drive/navigator.js +++ b/src/core/drive/navigator.js @@ -26,7 +26,7 @@ export class Navigator { this.currentVisit = new Visit(this, expandURL(locatable), restorationIdentifier, { referrer: this.location, ...this.currentVisitOptions, - ...options, + ...options }) this.currentVisit.start() } diff --git a/src/core/drive/visit.js b/src/core/drive/visit.js index e4dcca6b6..5f3ebf9ef 100644 --- a/src/core/drive/visit.js +++ b/src/core/drive/visit.js @@ -66,7 +66,7 @@ export class Visit { updateHistory, shouldCacheSnapshot, acceptsStreamResponse, - initiator, + initiator } = { ...defaultOptions, ...options