Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prettier #21

Merged
merged 5 commits into from
Nov 17, 2018
Merged

Prettier #21

merged 5 commits into from
Nov 17, 2018

Conversation

arcticicestudio
Copy link
Contributor

Closes #16

Installed the main "prettier" (1) package and
"eslint-plugin-prettier" (2) for ESLint compatibility.

References:

  (1) https://www.npmjs.com/package/prettier
  (2) https://www.npmjs.com/package/eslint-plugin-prettier

GH-16
This is one of the main features of Prettier: It already provides the
best and recommended style configurations of-out-the-box.
The only option that has been changed is the print width (1). It is set
to 80 by default which not up-to-date for modern screens (might only be
relevant when working in terminals only like e.g. with Vim). It is now
set to 120 used by all of Arctic Ice Studio's style guides.
The `prettier.config.js` configuration file is placed in the project
root as well as the `.prettierignore` file that defines ignore pattern.

References:

  (1) https://prettier.io/docs/en/options.html#print-width

GH-16
To be fully compatible with ESLint (implemented in GH-15),
eslint-plugin-prettier (1) has been added to the plugins array of the
ESLint configuration. To enable full compatibility the
`prettier/prettier` rule has been added with the `error` level.

References:

  (1) https://www.npmjs.com/package/eslint-plugin-prettier

GH-16
To allow to format all sources the `format:pretty` NPM script/task has
been added to be included in the main format script flow later on.

GH-16
Run Prettier on the current code base for the first time to format
according to the configuration.

GH-16
@arcticicestudio arcticicestudio merged commit 39af1da into develop Nov 17, 2018
@arcticicestudio arcticicestudio deleted the feature/gh-16-prettier branch November 17, 2018 16:27
@arcticicestudio arcticicestudio removed their assignment Nov 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants