LuisValgoi / ui5-webcomponents-react-seed

Seed of UI5 Web Components for React
12 stars 1 forks source link

feat: add prettier #47

Closed marceloschreiber closed 3 years ago

marceloschreiber commented 3 years ago

Description

Add prettier as discussed on #25.

I had to convert all files in the same commit due to the pre-commit hook and ESLint.

Let me know what you think. For me the great benefit is the VSCode integration where you just save the file and everything is formatted.

References

marceloschreiber commented 3 years ago

@LuisValgoi I was confused why there was no dependencies on 'devDependencies'. But decided to leave it there anyway.

LuisValgoi commented 3 years ago

@marceloschreiber that was occurring due the template.json (to let it available as a CRA). Probably there is a best way. But I couldnt find it.

marceloschreiber commented 3 years ago

Forgot to mention that you can also ignore the formatting for a section, similar on how it's possible to ignore ESLin rules: https://prettier.io/docs/en/ignore.html