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({
|
context.report({
|
||||||
node,
|
node,
|
||||||
loc: {
|
loc: {
|
||||||
start: node.loc.start,
|
start: id.loc.start,
|
||||||
end: node.loc.end,
|
end: body.loc.start,
|
||||||
},
|
},
|
||||||
messageId: 'topLevelFunctionDeclaration',
|
messageId: 'topLevelFunctionDeclaration',
|
||||||
fix(fixer) {
|
fix(fixer) {
|
||||||
|
Loading…
Reference in New Issue
Block a user