Skip to content

Commit

Permalink
fix: return fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
forivall committed Feb 5, 2022
1 parent 5cb1c4a commit e09468f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/rules/no-relative-packages.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,8 @@ function checkImportForRelativePackage(context, importPath, node) {
context.report({
node,
message: `Relative import from another package is not allowed. Use \`${properImport}\` instead of \`${importPath}\``,
fix: fixer => {
fixer.replaceText(
node,
JSON.stringify(properImport),
);
},
fix: fixer => fixer.replaceText(node, JSON.stringify(properImport))
,
});
}
}
Expand Down

0 comments on commit e09468f

Please sign in to comment.