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] ember actions are not allowed

See original GitHub issue

image

the only way I can get that error to go away is if I change the action to have onclick={{action @close}}

  <button
    class='modal-close is-large'
    aria-label={{t 'buttons.ariaLabel.closeModal'}}
    {{action @close}}
  />

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:2
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
NullVoxPopulicommented, Sep 24, 2018

Fixed by: https://github.com/ember-template-lint/ember-template-lint/pull/500 Duplicate of: https://github.com/ember-template-lint/ember-template-lint/issues/467

Reason this was appearing:

$ yarn why ember-template-lint
yarn why v1.7.0
[1/4] Why do we have the module "ember-template-lint"...?
...
=> Found "ember-template-lint@1.0.0-beta.5"
info Has been hoisted to "ember-template-lint"
info Reasons this module exists
   - Specified in "devDependencies"
   - Hoisted from "ember-cli-template-lint#ember-template-lint"
...
=> Found "eslint-plugin-hbs#ember-template-lint@0.8.23"
info This module exists because "eslint-plugin-hbs" depends on it.
...
Done in 1.82s.

two versions

0reactions
MrChocolatinecommented, Mar 7, 2021

I was about to create a ticket but I saw this one, I am having the same issue.

My .template-lintrc.js:

rules: {
  'attribute-indentation': {
    'as-indentation': 'attribute',
    'element-open-end': 'new-line',
    'indentation': 2,
    'mustache-open-end': 'new-line',
    'open-invocation-max-len': 100,
    'process-elements': true,
  },
},

Some HBS file:

1| <MyTabs
2|   @argA="Some text"
3|   @argB={{true}}
4|   as |tabs|
5| >
6|   {{!-- ... --}}
7| </MyTabs>

Error reported:

Incorrect indentation of close bracket '>' for the element '<MyTabs>' beginning at L5:C0.
Expected '<MyTabs>' to be at L4:C0.  attribute-indentation

As if the as |tabs| did not exist.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Incorrect indentation of htmlAttribute - Ember.JS
Hi all, I do not understand this message in the new ember. First line: 4:10 error Incorrect indentation of htmlAttribute 'type' beginning at...
Read more >
Ember-Template-Lint How to fix block-indentation errors on ...
Ember Template Lint does not support fixing errors automatically yet. But it's under active development. You can track progress in this ...
Read more >
ember-template-lint - npm
Name ✓ 💅 🔧 attribute‑order 🔧 block‑indentation 💅 🔧 builtin‑component‑arguments ✓
Read more >
Changelog - ember-bootstrap
#1393 Fix modals not being able to open after being closed once ... #1098 Reset style attribute after transition of BsCollapse (@basz) ...
Read more >
ember-template-lint | Yarn - Package Manager
0: no-inline-styles; linebreak-style; no-duplicate-attributes; table-groups; attribute-indentation; no-unnecessary-concat; no-input-block; no-input-tagname; no- ...
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