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.

Executable does not respect .template-lintrc.js

See original GitHub issue

To get tests passing we defined pending rules in .template-lintrc.js. This config is picked up correctly when running the ember tests but when running the ember-template-lint executable the config is ignored and it produces errors.

As the linter executable run is added to .travis.yml by default in cli in 3.4 we first noticed this when running on travis and then confirmed by running locally.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

7reactions
jacobqcommented, Sep 18, 2018

In case it’s useful to others here’s a quick hack to implement the dual entry solution mentioned above:

.template-lintrc.js

'use strict';

const pending = [
  // (paste output here)
  {
    moduleId: "my-ember-app/foo",
    // ...
  }, 
  // ...
];

module.exports = {
  extends: 'recommended',
  // ...
  pending: pending.concat(pending.map(item => Object.assign({}, item, {
    moduleId: item.moduleId.replace('my-ember-app', 'app')
  })))
};
0reactions
panthonycommented, Jan 9, 2019

I figured this is with the 1.0.0 release because of:

https://github.com/ember-template-lint/ember-template-lint/pull/599/files

And a ‘ember-template-version’ mismatch.

Problem:

ember template-lint:print-failing

Now generate this for me:

  {
    "moduleId": "my-app/components/my-component/template",
    "only": [
      null
    ]
  }

So… I’ll enable back attribute-indentation in my own rules…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Handlebars template not respecting view member when set ...
When I {{render}} the form from the containing handlebars template, the child template does not respect the observable on the view.
Read more >
Ember Template Lint: Linter For Ember Or Handlebars ...
When the ember-template-lint executable is run, we would have a single result indicating that the no-bare-strings rule found an error.
Read more >
ember-template-lint - npm
Name ✓ 💅 🔧 attribute‑order 🔧 block‑indentation 💅 🔧 builtin‑component‑arguments ✓
Read more >
How To Todo In Ember Template Lint
template -lintrc.js file"; --no-inline-config : "also, ignore instances where the rule has been supressed inline"; -- ...
Read more >
ember-template-lint-plugin-tailwindcss GDPR - GitLab
A recommended configuration is available. To use it, merge the following object to your .template-lintrc.js file: // .template-lintrc.js ...
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