Skip to content

Bug: File ignored because outside of base path (the behaviour of 9.X is different from 8.X) #19118

Open
@Peredery

Description

Environment

eslint version: v9.14.0

What parser are you using?

Default (Espree)

What did you do?

I have config file inside: /app/eslint.config.mjs and want to lint files inside /tmp/example.js

root@container:/app npx eslint --flag unstable_config_lookup_from_file -c "./eslint.config.mjs" /tmp/example.js

/tmp/example.js
  0:0  warning  File ignored because outside of base path

What did you expect to happen?

behaviour as before version 9.0, should check the file

What actually happened?

File ignored because outside of base path

Link to Minimal Reproducible Example

https://github.com/Peredery/eslint_bug_report_-File-ignored-because-outside-of-base-path

Participation

  • I am willing to submit a pull request for this issue.

Additional comments

Context "Why I need this behaviors": #18806 (reply in thread)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugESLint is working incorrectlyneeds infoNot enough information has been provided to triage this issuerepro:neededThis issue should include a reproducible example

    Type

    No type

    Projects

    • Status

      Feedback Needed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions