From 18bb0cead3bec13f0b5e4c8b312bf419e131ef99 Mon Sep 17 00:00:00 2001 From: pri1311 Date: Wed, 23 Mar 2022 18:46:12 +0530 Subject: [PATCH] add fixes --- src/rules/newline-after-import.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rules/newline-after-import.js b/src/rules/newline-after-import.js index 5e042eb810..a01505d578 100644 --- a/src/rules/newline-after-import.js +++ b/src/rules/newline-after-import.js @@ -81,14 +81,14 @@ module.exports = { function setOptions(context) { if (context.options[0]) { if ('count' in context.options[0] && 'considerComments' in context.options[0] ) { - return context.options[0] + return context.options[0]; } else if ( 'count' in context.options[0] ) { return Object.assign({}, context.options[0], { considerComments: false }); } else { return Object.assign({}, context.options[0], { count: 1 }); } } - return options = { count: 1, considerComments: false }; + return { count: 1, considerComments: false }; } function checkForNewLine(node, nextNode, type) {