Skip to content

Add Support for Module Aliases Defined in jsconfig.json/tsconfig.json #851

@porada

Description

@porada

Right now, xo.config.js can’t fully leverage imports in codebases that use path aliases:

{
	"compilerOptions": {
		"paths": {
			"@/*": ["./src/*"]
		}
}

Relative imports work, but modules that depend on other aliased imports won’t.

If there’s consensus around adding support for this, I’d be happy to open a PR.

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