From 424c42a8d1f911cc3f3e7d573f1bbb25a965314a Mon Sep 17 00:00:00 2001 From: pypy Date: Sun, 12 Jan 2020 00:30:06 +0900 Subject: [PATCH] disallow prefer-destructuring --- html/.eslintrc.js | 1 + html/app.js | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/html/.eslintrc.js b/html/.eslintrc.js index d5eb678b..ed80e767 100644 --- a/html/.eslintrc.js +++ b/html/.eslintrc.js @@ -60,6 +60,7 @@ module.exports = { 'one-var': 0, 'padded-blocks': 0, 'prefer-arrow-callback': 0, + 'prefer-destructuring': 0, 'prefer-named-capture-group': 0, 'quotes': ['error', 'single', { 'avoidEscape': true }], 'quote-props': 0, diff --git a/html/app.js b/html/app.js index caea67de..e09930ea 100644 --- a/html/app.js +++ b/html/app.js @@ -2508,8 +2508,7 @@ if (window.CefSharp) { } ctx.$isExpired = false; if (ctx.tags) { - // destructuring - [ctx.$group] = ctx.tags; + ctx.$group = ctx.tags[0]; } return ctx; };