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.

Add support for ignoring files

See original GitHub issue

Sometimes you want to specifically ignore files from being linted (for example, you have some server side handlebars files in the repo).

I’d like for these ignores to go into the existing .template-lintrc.js file (I don’t really want to have “yet another file” for this like .eslintignore).

Perhaps something like:

module.exports = {
  extends: 'recommended',
  
  ignoredFiles: [.....],
};

Thoughts?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
bmishcommented, Mar 2, 2021

Yes. ESLint has a large variety of ways for ignoring files, and while I don’t think it’s necessarily needed or urgent to support all of them, my preference would be to follow ESLint’s lead.

0reactions
lolmauscommented, Aug 6, 2021

I’ve added a TypeDoc theme to my codebase. TypeDoc happens to use Handlebars. Now ember-template-lint freaks out. 😦

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ignoring files - GitHub Docs
Configuring ignored files for a single repository ... You can create a .gitignore file in your repository's root directory to tell Git which...
Read more >
.gitignore file - ignoring files in Git | Atlassian Git Tutorial
Git ignore patterns are used to exclude certain files in your working directory from your Git history. They can be local, global, or...
Read more >
Ignoring in Git: How To Use .gitignore Files - BMC Software
When making commits to any Git repository, you'll choose the files you want to stage and then you'll commit them.
Read more >
.gitignore File – How to Ignore Files and Folders in Git
Git can only ignore untracked files that haven't yet been committed to the repository.
Read more >
Ignoring Files | Tower Help - Tower Git Client
Therefore, it's best to ignore files before they are checked into version control, right at the beginning of a project. If they have...
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