Disabled eslint rule 'prefer-spread'

master
Futago-za Ryuu 7 years ago
parent 5f0001c3e5
commit b4e5b97a2e

@ -12,6 +12,7 @@ module.exports = {
"rules": {
"prefer-rest-params": 0,
"prefer-spread": 0,
"strict": 0,
},

@ -18,7 +18,7 @@ const visitor = {
const extraArgs = Array.prototype.slice.call( arguments, 1 );
visit( ...[ node.expression ].concat( extraArgs ) );
visit.apply( null, [ node.expression ].concat( extraArgs ) );
}
@ -30,7 +30,7 @@ const visitor = {
node[ property ].forEach( child => {
visit( ...[ child ].concat( extraArgs ) );
visit.apply( null, [ child ].concat( extraArgs ) );
} );
@ -45,13 +45,13 @@ const visitor = {
if ( node.initializer ) {
visit( ...[ node.initializer ].concat( extraArgs ) );
visit.apply( null, [ node.initializer ].concat( extraArgs ) );
}
node.rules.forEach( rule => {
visit( ...[ rule ].concat( extraArgs ) );
visit.apply( null, [ rule ].concat( extraArgs ) );
} );

Loading…
Cancel
Save