PROBLEM : To avoid Inconsistency and different writing style codes a common style guide is to be followed across all openst repos
SOLUTION
Prettier https://prettier.io/ automatically styles the code. This saves a lot of time and mental stress in formatting the code.
Prettier code format supports:
JavaScript, including ES2017
JSX
Flow
TypeScript
CSS, Less, and SCSS
JSON
GraphQL
Markdown, including GFM
YAML
It removes all original styling and ensures the outputted code conforms to a consistent style.
PROBLEM : To avoid Inconsistency and different writing style codes a common style guide is to be followed across all openst repos
SOLUTION
Prettier https://prettier.io/ automatically styles the code. This saves a lot of time and mental stress in formatting the code.
Prettier code format supports:
JavaScript, including ES2017
JSX
Flow
TypeScript
CSS, Less, and SCSS
JSON
GraphQL
Markdown, including GFM
YAML
It removes all original styling and ensures the outputted code conforms to a consistent style.