disallow prefer-destructuring

This commit is contained in:
pypy
2020-01-12 00:30:06 +09:00
parent 3ca9ca73eb
commit 424c42a8d1
2 changed files with 2 additions and 2 deletions
+1
View File
@@ -60,6 +60,7 @@ module.exports = {
'one-var': 0, 'one-var': 0,
'padded-blocks': 0, 'padded-blocks': 0,
'prefer-arrow-callback': 0, 'prefer-arrow-callback': 0,
'prefer-destructuring': 0,
'prefer-named-capture-group': 0, 'prefer-named-capture-group': 0,
'quotes': ['error', 'single', { 'avoidEscape': true }], 'quotes': ['error', 'single', { 'avoidEscape': true }],
'quote-props': 0, 'quote-props': 0,
+1 -2
View File
@@ -2508,8 +2508,7 @@ if (window.CefSharp) {
} }
ctx.$isExpired = false; ctx.$isExpired = false;
if (ctx.tags) { if (ctx.tags) {
// destructuring ctx.$group = ctx.tags[0];
[ctx.$group] = ctx.tags;
} }
return ctx; return ctx;
}; };