Skip to content
This repository was archived by the owner on Aug 24, 2022. It is now read-only.
This repository was archived by the owner on Aug 24, 2022. It is now read-only.

no-curly-component-invocation gives wrong advice for yielded blocks #598

@elwayman02

Description

@elwayman02

Take the following example from the ec-addon-docs Quickstart guide:

{{#docs-viewer as |viewer|}}
  {{#viewer.nav as |nav|}}
    {{nav.item "Introduction" "docs.index"}}
  {{/viewer.nav}}

  {{#viewer.main}}
    {{outlet}}
  {{/viewer.main}}
{{/docs-viewer}}

The linter will spit out the following error:

error You are using the component {{viewer.main}} with curly component syntax. You should use <Viewer.Main> instead. If it is actually a helper you must manually add it to the 'no-curly-component-invocation' rule configuration, e.g. 'no-curly-component-invocation': { allow: ['viewer.main'] }. no-curly-component-invocation

However, Viewer.Main will not work, even if you update to as |Viewer|. The correct syntax is instead <viewer.main>.

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