Skip to content

Question: How scopeManager works in <template> #263

Open
@fisker

Description

@fisker

eslint-plugin-unicorn user reported that unicorn/prefer-includes crashes on checking

<template><div v-if="values.some(x => x === 'foo')"></div></template>

I located the problem, when I use context.scopeManager.acquire() to get the callback function scope, it returns null.

I'm not sure scopeManager works here, is it bug?

Test added in sindresorhus/eslint-plugin-unicorn#2645, really appreciate it if you can provide some help @ota-meshi

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions