Skip to content

Linting: head() function doesn't recognize data properties accessed through 'this' #426

@drew-chen

Description

@drew-chen

Describe the bug
Linting: head() function doesn't recognize data properties accessed through 'this'. This is with the options api.

To Reproduce

https://codesandbox.io/s/ts-with-options-api-2cmek?file=/pages/index.vue:101-129

Fork the example in the docs: https://typescript.nuxtjs.org/examples/options-api/minimal.html
After that, add a head() function.

Expected behavior

Linter should recognize that it's from data().
Currently, I'm just ignoring certain lines.

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