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 check to use periods at the end of error messages #88

Merged
merged 4 commits into from
Apr 9, 2024

Conversation

ShridharGoel
Copy link
Contributor

grgia
grgia previously approved these changes Apr 5, 2024
@grgia
Copy link
Contributor

grgia commented Apr 5, 2024

LGTM, will wait for @getusha to take a look

package.json Outdated
@@ -1,6 +1,6 @@
{
"name": "eslint-config-expensify",
"version": "2.0.44",
"version": "2.0.45",
Copy link

Choose a reason for hiding this comment

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

Do we need to change this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, we need to increase the version and then use it in Expensify/App.

Copy link

Choose a reason for hiding this comment

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

I don't think that's how it works, check other PRs. that step seems to be automated.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

https://github.com/Expensify/eslint-config-expensify/pull/54/files#diff-053150b640a7ce75eff69d1a22cae7f0f94ad64ce9a855db544dda0929316519

It's there in above PR. It needs to be done in package-lock.json also, added there as well.

Copy link

Choose a reason for hiding this comment

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

Can you check recent PRs?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Got it, OSBotify bot will update it. Updated.

Comment on lines 21 to 22
const lastChar = errorMessage[errorMessage.length - 1];
const fixedMessage = lastChar === '.' ? errorMessage : `${errorMessage}.`;
Copy link

Choose a reason for hiding this comment

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

i don't see this condition working while having it inside if (!errorMessage.endsWith('.')) {, am i missing anything?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, the check was not needed. Updated it.

@grgia
Copy link
Contributor

grgia commented Apr 8, 2024

@ShridharGoel conflicts

@grgia grgia requested review from getusha and grgia April 8, 2024 10:26
@ShridharGoel
Copy link
Contributor Author

@grgia Updated.

@getusha
Copy link

getusha commented Apr 9, 2024

Sorry for the delay, i'll test it today.

@grgia grgia merged commit 1d697ad into Expensify:main Apr 9, 2024
Copy link
Contributor

github-actions bot commented Apr 9, 2024

🚀 Published in 2.0.46

@grgia
Copy link
Contributor

grgia commented Apr 9, 2024

Whoops sorry @getusha I thought that you had approved ad merged too early

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.

3 participants