Skip to content

resolve '.' get an error path #201

@9romise

Description

@9romise

I made a eslint-import-resolver based on oxc-resolver. Beside the rule import-x/no-self-import, it perfectly replaced eslint-import-resolver-node in my projects. I found the problem is for importing from '.'

For example, there is a folder includes index.ts and test.ts, when I write this, I got a correctly from index.ts in test.ts.
But resolve.sync got the result like { path: '**/**/test.ts' }

// test.ts
import { a } from '.'
// index.ts
export  const a = 1

I'm not sure if it's really an issue and if I've made the issue clear, if not, feel free to close it or mention me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions