Skip to content

Convenient way to disable per file #68

@steinarb

Description

@steinarb

There are some files I would like to exclude from prettier formatting, because they are more readable if I can have one line per declaration:

  1. The redux actions definitions files (e.g. like this one)
  2. The reduxjs toolkit reducers (e.g. like this one)

Currently I solve this by switching to fundamental-mode before saving.

But this is a nuisance, and especially when I forget to switch mode before saving, and don't see it until the change has been committed and pushed (like what happened today).

So it would be nice to have the exclusion automated.

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