fix(top-level-function): narrow warning range
This commit is contained in:
parent
d3c3e1b84d
commit
d2150eec3b
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user