Skip to content

feature request: Check if a file is sorted already #6

Open
@tylerbutler

Description

@tylerbutler

Thanks for the great library! I am using it to add some determinism to our tsconfig files in our monorepo. One thing that would be helpful for us is a faster way to check if a file is already sorted. We run checks in CI to verify that files are in the right state, and while we can just "always sort" it is a little slow compared to our other "checks."

I was thinking that it would be easiest to implement something like this in the core library. I am willing to open a PR if you have suggestions for where and how to implement this.

There should probably be a corresponding flag on the CLI package, too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions