Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Question: How scopeManager works in <template> #263

Copy link
Copy link
Open
@fisker

Description

@fisker
Issue body actions

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.