Skip to content

Commit

Permalink
chore: update blog post
Browse files Browse the repository at this point in the history
  • Loading branch information
JoepKockelkorn committed Mar 17, 2024
1 parent d7f998d commit af77388
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions content/blog/combining-gitattributes-editorconfig-and-prettier.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,22 @@ Then, I set the following options:
[See an example here](https://prettier.io/docs/en/options.html#bracket-line).
- `trailingComma` to `all`: This makes sure that there is a trailing comma wherever possible. This makes refactoring easier.

TODO: explain why some options are not set, like `tabWidth` and `printWidth`
!!! info Adhere to EditorConfig

# Exceptions
Prettier will respect the settings from EditorConfig. And because EditorConfig applies to more files than Prettier, I did not include the
`printWidth`, `tabWidth` and `useTabs` options in the Prettier config.

!!!

# Editor integration

TODO: explain how to integrate EditorConfig and Prettier in your editor/workflow

# How to enforce

TODO: explain how to enforce these settings in a pipeline

# Other exceptions

TODO: explain solution for Docker container comment from blog post:
https://dev.to/deadlybyte/please-add-gitattributes-to-your-git-repository-1jld/comments

0 comments on commit af77388

Please sign in to comment.