jellyfin-archive / jellyfin-react-client

Next Generation Client for Jellyfin
https://jellyfin.org
Mozilla Public License 2.0
85 stars 30 forks source link

Configure Prettier/eslint #49

Open edmundmiller opened 4 years ago

edmundmiller commented 4 years ago

Related to #20

I'd like to use this script https://github.com/paulolramos/eslint-prettier-airbnb-react to set it up. Take a look over the user set values(line width) and let me know what the group would like them set to.

This can be added to the GH actions also.

EraYaN commented 4 years ago

In other places we use a tab length of 4 and no enforced line width. Preferably it would take its tab length setting from .editorconfig

TiraelSedai commented 4 years ago

Setting tabs to 4 spaces and getting it from .editorconfig is easy, just have isoptions.editorconfig=true, however there is no such thing as "no enforced line width" with Prettier.

It will set it to default (which is 80) if none specified and will always resize all lines in accordance with line width settings.