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

Add prettier #18

Merged
merged 6 commits into from
Aug 30, 2023
Merged

Add prettier #18

merged 6 commits into from
Aug 30, 2023

Conversation

dhenneke
Copy link
Contributor

@dhenneke dhenneke commented Aug 9, 2023

This PR aligns the code formatting to the other projects to make it easier to work with the code.

@dhenneke dhenneke requested a review from a team as a code owner August 9, 2023 11:25
Copy link
Contributor

@weeman1337 weeman1337 left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution @dhenneke . Changes do basically look good 👍 Only some smaller notes.

.eslintrc.js Outdated Show resolved Hide resolved
.prettierignore Outdated Show resolved Hide resolved
@weeman1337
Copy link
Contributor

@dhenneke
Copy link
Contributor Author

dhenneke commented Aug 9, 2023

I added eslint-plugin-unicorn because eslint complained that it wasn't installed.

@weeman1337
Copy link
Contributor

I added eslint-plugin-unicorn because eslint complained that it wasn't installed.

Yep. It is a peer dependency of eslint-plugin-matrix-org . Depending on the configuration it has to be installed.

@richvdh richvdh removed their request for review August 9, 2023 13:01
Signed-off-by: Dominik Henneke <dominik.henneke@nordeck.net>
Signed-off-by: Dominik Henneke <dominik.henneke@nordeck.net>
Signed-off-by: Dominik Henneke <dominik.henneke@nordeck.net>
@dhenneke
Copy link
Contributor Author

I rebased the branch (the formatting changes made it hard to update it) and also upgraded the pipeline to use matrix builds for node 18 & latest. If you prefer, I can also move the pipeline part to a separate PR.

@weeman1337
Copy link
Contributor

The workflows are still failing. @dhenneke can you use the same as in https://github.com/matrix-org/matrix-react-sdk/blob/develop/.github/workflows/static_analysis.yaml#L70 etc.?

@dhenneke
Copy link
Contributor Author

Yes I will update the actions later 👍

Signed-off-by: Dominik Henneke <dominik.henneke@nordeck.net>
Copy link
Contributor

@weeman1337 weeman1337 left a comment

Choose a reason for hiding this comment

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

Getting closer 🙂 Can you fix the lint error and the script? If the new workflows are green we can switch the required workflows and merge it.

package.json Outdated
"build:compile": "babel -d lib --verbose --extensions \".ts,.tsx\" src",
"start": "tsc -p ./tsconfig.build.json -w",
"test": "jest",
"lint": "eslint src test && tsc --noEmit && prettier --check",
Copy link
Contributor

Choose a reason for hiding this comment

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

Prettier needs a argument what to check:

Suggested change
"lint": "eslint src test && tsc --noEmit && prettier --check",
"lint": "eslint src test && tsc --noEmit && prettier --check .",

Signed-off-by: Dominik Henneke <dominik.henneke@nordeck.net>
Copy link
Contributor

@weeman1337 weeman1337 left a comment

Choose a reason for hiding this comment

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

Looks good now, thanks 👍

@richvdh
Copy link
Member

richvdh commented Aug 30, 2023

@weeman1337 will you merge this?

@weeman1337
Copy link
Contributor

@weeman1337 will you merge this?

I've just learned, that „You’re not authorized to merge this pull request.“ @richvdh can you merge it?

@richvdh richvdh merged commit 6b67d69 into matrix-org:main Aug 30, 2023
6 checks passed
@dhenneke dhenneke deleted the nic/feat/prettier branch August 30, 2023 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants