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.

Exclude Emacs backup files from globs by default?

See original GitHub issue

What version of ESLint are you using? 3.2.2

What parser (default, Babel-ESLint, etc.) are you using? Default

Please show your full configuration: Seems unrelated to the issue at hand. The relevant line is in my npm scripts: "lint": "eslint \"{lib,test}/**\""

What did you do? Please include the actual source code causing the issue. Ran eslint on a computer that uses emacs

What did you expect to happen? Emacs backup files should not have been linted

What actually happened? Please include the actual, raw output from ESLint. They were linted


@tyoshino may be able to tell you more. I don’t quite understand besides that in https://github.com/whatwg/streams/pull/514 he suggested changing the lint glob to "lint": "eslint \"{lib,test}/**/*[!~]\"", and I thought maybe this or something like it should be the default?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
platinumazurecommented, Sep 2, 2016

We also support directories (including multiple directories), at which point those get expanded to JS-only globs (unless you use --ext as well), such as eslint lib test.

Since there are a few ways around this, both in terms of specifying more precise globs and using directories to avoid globs, I don’t think we want to make our default more magical by looking for different forms of backup files (Emacs has *~, but vim has .*.swp). We can’t just add a bunch of exceptions without there being a compelling reason to do so (and no workaround).

0reactions
kaicataldocommented, Sep 2, 2016

Looks like this question has been resolved. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ignore backup files in projectile - Emacs Stack Exchange
The variable projectile-globally-ignored-files should be populated with literal filename suffixes, not glob patterns.
Read more >
How do I control how Emacs makes backup files?
I always use autosave and backup files by default, except for files with sensitive data. Sensitive mode disables autosaving and backups. BTW, #file.ext#...
Read more >
Backing up — restic 0.14.0 documentation
Backing up ¶. Now we're ready to backup some data. The contents of a directory at a specific point in time is called...
Read more >
Functions - Bazel
In packages under javatests the default value is 1. features. List strings; optional. Sets various flags that affect the semantics of this BUILD...
Read more >
fd-find - crates.io: Rust Package Registry
Ignores hidden directories and files, by default. ... (default: none) -E, --exclude <pattern> Exclude entries that match the given glob ...
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