question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

attribute-indentation not working fine for block code

See original GitHub issue

Hi there, awesome addon by the way.

I have a case where if I use

{{#sp-ember-select
  errors=customer.errors.title
  label="Title"
as |title|}}
{{title}}
{{/sp-ember-select}}

I get an error

Incorrect indentation of close curly braces ‘}}’ for the component ‘{{sp-ember-select}}’ beginning at L21:C22. Expected ‘{{sp-ember-select}}’ to be at L22:C12

So I do the change as per the docs says to

as |title|
}}

Then error changes to

Incorrect indentation of close curly braces ‘}}’ for the component ‘{{sp-ember-select}}’ beginning at L22:C12. Expected ‘{{sp-ember-select}}’ to be at L21:C22

meaning that it was right originally, I think there is a bug there.

I’m using ember-cli-template-lint": "^1.0.0-beta.2"

Thank you very much

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:7
  • Comments:14 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
Willibaurcommented, Sep 26, 2018

I agree with @ohcibi linter config is not working as expected, we should not be finding ways around to make it work.

@rwjblue is there any plan in the pipeline for dealing with this issue?

0reactions
puwelouscommented, Jan 25, 2019

@raphaelns-developer unfortunately it doesn’t work ☝️

  <ButtonWithTask
    class={{bem this "revoke" "confirm"}}
    @task={{task this.authorizedApps.confirmRevoke @row}}
    data-test-authorized-apps-table-actions="confirm-revoke"
  as |isRevokeTaskRunning|
  >
    {{#if isRevokeTaskRunning}}
      {{fa-icon "refresh" spin=true}}
    {{/if}}
    {{t "authorized-apps.revoke-confirm"}}
  </ButtonWithTask>
Read more comments on GitHub >

github_iconTop Results From Across the Web

Block indentation should be recognized as a formatting attribute
Use a sample with block indentation and remove format plugins. Indent a paragraph. Select all. Use remove format option. ✓ Expected result.
Read more >
What should I do with "Unexpected indent" in Python?
The best way to avoid these issues is to always use a consistent number of spaces when you indent a subblock, and ideally...
Read more >
How to Indent Text, Paragraphs, Lists & More in CSS
Learn how to use the CSS text-indent property to add or customize the indentation of paragraphs, lists, and other elements.
Read more >
Indentation | IntelliJ IDEA Documentation - JetBrains
Open indentation settings in code style scheme · Click the widget and select Configure Indents for 'Language'. · In the dialog that opens,...
Read more >
HTML: Indentation and Spacing | CSE 154 Unofficial Style Guide
Spacing and indentation should be consistent throughout your code. Many developers choose to use 4-space or 2-space indentation. In HTML, each nested tag ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found