You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.
will cause all files to be skipped, because minimatch sees this as a negation rule and matches all files that are not .eslintrc. The intent is the same as .gitignore, "don't skip .eslintrc.js".
The text was updated successfully, but these errors were encountered:
blowery
changed the title
.eslintignore rules that start with ! cause all files to be skipped
.eslintignore rules that start with ! cause nearly all files to be skipped
Apr 18, 2017
…lobs
Minimatch's globs behavior differs from the typical .gitignore glob behavior. This means that
certain patterns do not correctly ignore filepaths. Using node-ignore should fix this problem.
BREAKING CHANGE: Some files that were previously ignored may now no longer be ignored, and vice
versa.
Fixes#133
for example, an
.eslintignore
with:will cause all files to be skipped, because
minimatch
sees this as a negation rule and matches all files that are not.eslintrc
. The intent is the same as.gitignore
, "don't skip.eslintrc.js
".Note that eslint does not use
minimatch
, but instead uses https://www.npmjs.com/package/ignore. See https://github.com/eslint/eslint/blob/master/lib/ignored-paths.jsThe text was updated successfully, but these errors were encountered: