Exclude Emacs backup files from globs by default?
See original GitHub issueWhat 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:
- Created 7 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
We also support directories (including multiple directories), at which point those get expanded to JS-only globs (unless you use
--ext
as well), such aseslint 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).Looks like this question has been resolved. Thanks!