diff --git a/src/rules/function-no-return.ts b/src/rules/function-no-return.ts index 1c2aa16..69b95c3 100644 --- a/src/rules/function-no-return.ts +++ b/src/rules/function-no-return.ts @@ -28,7 +28,7 @@ const meta: Rule.RuleMetaData = { const create = (context: Rule.RuleContext) => { return { FunctionDeclaration(node) { - const { id, ReturnType, body, loc } = node + const { id, ReturnType, body } = node const name = id.name const type = ReturnType && ReturnType.value.toLowerCase() let messageId = null