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

View File

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

View File

@@ -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;
};