Skip to content

Configure prettier #354

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

Merged
merged 5 commits into from
Jun 9, 2021
Merged

Configure prettier #354

merged 5 commits into from
Jun 9, 2021

Conversation

mdubus
Copy link
Member

@mdubus mdubus commented Jun 8, 2021

What's wrong ?

Prettier was installed but the rules weren't configured properly. There was different coding styles in different files. Lack of uniformity.

What's inside this PR ?

Edit of the configuration file, and formatting of every file regarding the same specification.
Please take a look at the rules to see if it seems coherent to you 🙏

@bidoubiwa bidoubiwa added the skip-changelog The PR will not appear in the release changelogs label Jun 8, 2021
@mdubus mdubus marked this pull request as draft June 8, 2021 09:02
@mdubus mdubus marked this pull request as ready for review June 8, 2021 12:58
@bidoubiwa
Copy link
Contributor

bors try

bors bot added a commit that referenced this pull request Jun 8, 2021
@bors
Copy link
Contributor

bors bot commented Jun 8, 2021

try

Build succeeded:

Copy link
Contributor

@bidoubiwa bidoubiwa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the contributing.md there is still the following:

# Linter with auto-correct
yarn lint-fix
# Prettier for Markdown (auto-correct)
yarn format:md
# Prettier for SCSS (auto-correct)
yarn format:scss

Could you change the lint-fix and also test the format to see if they work properly?

@bidoubiwa
Copy link
Contributor

Also in the contributing.md apparently the linter recognizes that the code is .js thus he does not lint what is not .js.

So you have the following at the bottom of the file:

"version": "X.X.X",

export default 'X.X.X'

Could you replace the double quotes with simple quotes?

@mdubus
Copy link
Member Author

mdubus commented Jun 8, 2021

In the contributing.md there is still the following:

# Linter with auto-correct
yarn lint-fix
# Prettier for Markdown (auto-correct)
yarn format:md
# Prettier for SCSS (auto-correct)
yarn format:scss

Could you change the lint-fix and also test the format to see if they work properly?

Nice catch ! I tested them and they work perfectly 👌

@mdubus mdubus requested a review from bidoubiwa June 9, 2021 07:29
Copy link
Contributor

@bidoubiwa bidoubiwa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bors merge

@bors
Copy link
Contributor

bors bot commented Jun 9, 2021

Build succeeded:

@bors bors bot merged commit 4a2779b into meilisearch:main Jun 9, 2021
@mdubus mdubus deleted the add_prettier branch June 9, 2021 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip-changelog The PR will not appear in the release changelogs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants