Skip to content

Commit

Permalink
fix(top-level-function): narrow warning range
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Mar 30, 2023
1 parent d3c3e1b commit d2150ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/eslint-plugin-antfu/src/rules/top-level-function.ts
Expand Up @@ -48,8 +48,8 @@ export default createEslintRule<Options, MessageIds>({
context.report({
node,
loc: {
start: node.loc.start,
end: node.loc.end,
start: id.loc.start,
end: body.loc.start,
},
messageId: 'topLevelFunctionDeclaration',
fix(fixer) {
Expand Down

0 comments on commit d2150ee

Please sign in to comment.