Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The "../.." folder is always ignored #10675

Closed
not-an-aardvark opened this issue Jul 26, 2018 · 0 comments
Closed

The "../.." folder is always ignored #10675

not-an-aardvark opened this issue Jul 26, 2018 · 0 comments
Labels
accepted There is consensus among the team that this change meets the criteria for inclusion archived due to age This issue has been archived; please open a new issue for any further discussion bug ESLint is working incorrectly core Relates to ESLint's core APIs and features good first issue Good for people who haven't worked on ESLint before

Comments

@not-an-aardvark
Copy link
Member

not-an-aardvark commented Jul 26, 2018

(Found while investigating this report from Gitter)

Tell us about your environment

  • ESLint Version: v5.2.0
  • Node Version: 8.11.3
  • npm Version: 5.10.0

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

Please show your full configuration:

Configuration
(none)

What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.

mkdir -p foo/bar/baz
echo 'foo!' > foo/file.js
cd foo/bar/baz
eslint --no-eslintrc ../..

What did you expect to happen?

I expected ESLint to lint the foo/file.js file and report a parsing error for it, since its syntax is invalid.

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

ESLint didn't find any files:

$ eslint --no-eslintrc ../..

Oops! Something went wrong! :(

ESLint: 5.2.0.
No files matching the pattern "../.." were found.
Please check for typing mistakes in the pattern.

This is happening as a result of the logic here. By default, ESLint ignores all folders starting with a . character (to prevent things like .git from being linted), and there is supposed to be an exception that prevents folders in .. from being ignored. However, it seems like this exception isn't working when a folder is ../.., so that folder is incorrectly being ignored.

@not-an-aardvark not-an-aardvark added bug ESLint is working incorrectly good first issue Good for people who haven't worked on ESLint before core Relates to ESLint's core APIs and features accepted There is consensus among the team that this change meets the criteria for inclusion labels Jul 26, 2018
gssridhar12 added a commit to gssridhar12/eslint that referenced this issue Jul 26, 2018
gssridhar12 added a commit to gssridhar12/eslint that referenced this issue Jul 27, 2018
gssridhar12 added a commit to gssridhar12/eslint that referenced this issue Jul 27, 2018
gssridhar12 added a commit to gssridhar12/eslint that referenced this issue Jul 27, 2018
gssridhar12 added a commit to gssridhar12/eslint that referenced this issue Jul 27, 2018
gssridhar12 added a commit to gssridhar12/eslint that referenced this issue Jul 27, 2018
gssridhar12 added a commit to gssridhar12/eslint that referenced this issue Jul 27, 2018
gssridhar12 added a commit to gssridhar12/eslint that referenced this issue Jul 27, 2018
gssridhar12 added a commit to gssridhar12/eslint that referenced this issue Jul 28, 2018
@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Jan 27, 2019
@eslint-deprecated eslint-deprecated bot added the archived due to age This issue has been archived; please open a new issue for any further discussion label Jan 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
accepted There is consensus among the team that this change meets the criteria for inclusion archived due to age This issue has been archived; please open a new issue for any further discussion bug ESLint is working incorrectly core Relates to ESLint's core APIs and features good first issue Good for people who haven't worked on ESLint before
Projects
None yet
Development

No branches or pull requests

1 participant