Skip to content

ESLint rules are not supporting absolute imports #230

@andre-krueger

Description

@andre-krueger

Sample project: https://github.com/andre-krueger/react-obsidian-example

When running ESLint with obsidian/unresolved-provider-dependencies enabled, the path to the absolutely imported graph isn't resolved correctly.

It seems that the rule is using the current directory of the the graph in question and appends the absolutely imported graph. If that import also includes the file extension, it will get added, too, resulting in duplicate extensions.

Example:

Error: ENOENT: no such file or directory, open '/Users/andre/Development/react-obsidian-example/src/libraries/module1/di/network/di/NetworkGraph.ts.ts'
Occurred while linting /Users/andre/Development/react-obsidian-example/src/libraries/module1/di/Module1Graph.ts:8

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions