Skip to content

template-indent: Guess indent string from template/file #2833

@fisker

Description

@fisker

Description

When option.indent is not set, it uses the parent indention, but if the parent is a root expression, if forces space instead of tab.

Should guess the indent string from existing template literal or the whole file instead.

Examples

// ❌
const foo = outdent`
foo(
	bar,
)
`;

Additional Info

a8accc9

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions