Why does ESLint or any linter

Why would ESLint or any linter throw an error for this ?
It doesn’t just seem like a ‘strict’ rule but more like incompetence.
How can it not distinguish between a variable declaration and a function parameter?

Here is the code:

const name = "Paul";

// The scope of name is too tight
const logEvent = (name, event) => {

    console.log(
        `${name}'s event is: ${event}.`,
        "\n"
    );

};