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

@Peredery

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)

Metadata

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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy