Skip to content

Code base seems to be non-formatted with Prettier #262

@kettanaito

Description

@kettanaito

The library is using Prettier to format the changes via lint-staged and npm run prettier command. When doing so, however, it formats the entire file, distorting the commit's diff. This makes contributing to the project extremely tedious.

I believe the reason for that is the lack of the explicit Prettier configuration that'd tell Prettier how to format the code. It must be detecting some of my other Prettier configurations and formatting the code base accordingly.

Solution

Let's add an explicit .prettierrc configuration so that the formatting on the commit hook would produce a consistent result.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions