Skip to content

Variable component name property causes TypeError: Cannot read property 'startsWith' of undefined #12

@js07

Description

@js07

When I run eslint on a component source with its name property set to a var, I get the error:

TypeError: Cannot read property 'startsWith' of undefined

For example,

const EVENT_SOURCE_NAME = "New Issue (Instant)";

module.exports = {
  type: "source",
  name: EVENT_SOURCE_NAME,

See this Slack thread for additional context.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions