Skip to content

Commit 9d64c39

Browse files
committed
add fixes
1 parent 2464a9e commit 9d64c39

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/rules/newline-after-import.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,19 +76,19 @@ module.exports = {
7676
create(context) {
7777
let level = 0;
7878
const requireCalls = [];
79-
let options = setOptions(context);
79+
const options = setOptions(context);
8080

8181
function setOptions(context) {
8282
if (context.options[0]) {
8383
if ('count' in context.options[0] && 'considerComments' in context.options[0] ) {
84-
return context.options[0]
84+
return context.options[0];
8585
} else if ( 'count' in context.options[0] ) {
8686
return Object.assign({}, context.options[0], { considerComments: false });
8787
} else {
8888
return Object.assign({}, context.options[0], { count: 1 });
8989
}
9090
}
91-
return options = { count: 1, considerComments: false };
91+
return { count: 1, considerComments: false };
9292
}
9393

9494
function checkForNewLine(node, nextNode, type) {

0 commit comments

Comments
 (0)