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

Lint all TS files base on our prettier for easier developer life, and added CI prettier step #1002

Merged
merged 3 commits into from
Mar 7, 2024

Conversation

avifenesh
Copy link
Collaborator

@avifenesh avifenesh commented Feb 20, 2024

As we recommend in our DEVELOPER.md for Node to use prettier, we should follow the lint of what prettier give as a default.

As Node developers, we encountered a lot the borden of fixing unwanted lints from prettier, that are actually needed lints, but are not part of the PR context, and for saving our time and nerves I created new workspace with fresh prettier and let it fix the TS files so we don't need to fight with it anymore - all what developers need to do is to use the default of prettier.

Added prettier scripts for check and format, added instructions for usage, added to the CI, and aligned all the file with the standard.

Changed npm-cd workflow to fit the changes - #1081

Changed lint-ts to instead of receptively create a task for each folder and ending running lint on the whole repo, to loop on the ts folders. end lint them specifically

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@avifenesh avifenesh requested a review from a team as a code owner February 20, 2024 05:51
@avifenesh avifenesh force-pushed the Linting/TS branch 2 times, most recently from 2e259b5 to 3a9d61b Compare February 20, 2024 08:27
@avifenesh avifenesh changed the title Lint all TS files base on our prettier for easier developer life Lint all TS files base on our prettier for easier developer life, and added CI prettier step Feb 20, 2024
.github/workflows/lint-ts.yml Outdated Show resolved Hide resolved
@avifenesh avifenesh force-pushed the Linting/TS branch 3 times, most recently from dfe2ea3 to 14a70d8 Compare February 21, 2024 10:58
.vscode/settings.json Outdated Show resolved Hide resolved
node/package.json Outdated Show resolved Hide resolved
@avifenesh avifenesh force-pushed the Linting/TS branch 6 times, most recently from a83e66f to 1a97371 Compare March 6, 2024 14:45
Copy link
Contributor

@shachlanAmazon shachlanAmazon left a comment

Choose a reason for hiding this comment

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

@barshaul, anything more which is relevant to CD?

.github/workflows/lint-ts.yml Show resolved Hide resolved
@barshaul
Copy link
Collaborator

barshaul commented Mar 7, 2024

@barshaul, anything more which is relevant to CD?

nope

@avifenesh avifenesh merged commit ddf98d8 into valkey-io:main Mar 7, 2024
6 checks passed
@avifenesh avifenesh deleted the Linting/TS branch March 7, 2024 09:23
cyip10 pushed a commit to Bit-Quill/valkey-glide that referenced this pull request Jun 24, 2024
… added CI prettier step (valkey-io#1002)

* Edited all files to fit prettier standart and added prettier command to pckage.json's

* Edited lint-ts to check for ts folders and to run globally

* adding time to after all for avoiding failure on timeout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants