Prettier should pick up .editorconfig by default or via configuration
- Dominant language
- Java
- Stars
- 5.6k
- Forks
- 559
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 34
Description
Feature Request:
Prettier usually picks up the '.editorconfig'-File of the project. The following variables will be evaluated:
- end_of_line
- indent_style
- indent_size/tab_width
- max_line_length
As far as I can see the .editorconfig of the project is currently not being picked up. There's no way to configure spotless to explicitly use a .editorconfig-File. As workaround I currently reconfigure the desired properties:
```kotlin
<...>.config(prettierConfig)
val prettierConfig = mapOf("tabWidth" to 4, "printWidth" to 80)
```
So my proposal is to ideally support .editorconfig without dedicated config, as alternative the .editorconfig could be supplied as another configuration parameter.
Contributor guide
Assessment
This issue has not been assessed yet.