Skip to content

Absolute paths from a rootDir with no leading slash are ignored #169

@vitonsky

Description

@vitonsky

We have tsconfig

{
	"compilerOptions": {
		"rootDir": ".",
		"baseUrl": ".",
		"paths": {
			"@tests/*": [
				"src/__tests__/*"
			],
		}
	},
}

And some files have imports in paths like this src/__tests__/utils/makeAutoClosedSQLiteDB
Here the path is related to a root dir.

My expectation is eslint-plugin-paths must replace such paths to a @tests/utils/makeAutoClosedSQLiteDB.

Currently the plugin does not react on such paths, because a paths does not seems as a relative paths.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions