Skip to content

chore(eslint-plugin): standardise sentences in rule messages #1935

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 1 commit into from
Apr 26, 2020

Conversation

vostrnad
Copy link
Contributor

Current situation: The majority of error messages in rules end with a period, and almost all error messages start with an uppercase character.

This PR standardizes this, with one exception being messages that end with a colon followed by a template literal like this: Name must match one of the following formats: {{formats}}

@typescript-eslint
Copy link
Contributor

Thanks for the PR, @vostrnad!

typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community.

The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately.

Thanks again!


🙏 Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently on https://opencollective.com/typescript-eslint. As a thank you, your profile/company logo will be added to our main README which receives thousands of unique visitors per day.

@codecov
Copy link

codecov bot commented Apr 25, 2020

Codecov Report

Merging #1935 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1935   +/-   ##
=======================================
  Coverage   94.36%   94.36%           
=======================================
  Files         166      166           
  Lines        7608     7608           
  Branches     2185     2185           
=======================================
  Hits         7179     7179           
  Misses        183      183           
  Partials      246      246           
Flag Coverage Δ
#unittest 94.36% <ø> (ø)
Impacted Files Coverage Δ
...nt-plugin/src/rules/consistent-type-definitions.ts 90.32% <ø> (ø)
...kages/eslint-plugin/src/rules/naming-convention.ts 88.51% <ø> (ø)
...es/eslint-plugin/src/rules/no-floating-promises.ts 100.00% <ø> (ø)
...rc/rules/no-unnecessary-boolean-literal-compare.ts 77.14% <ø> (ø)
...slint-plugin/src/rules/no-unnecessary-condition.ts 99.16% <ø> (ø)
...es/eslint-plugin/src/rules/no-unsafe-assignment.ts 80.00% <ø> (ø)
packages/eslint-plugin/src/rules/no-unsafe-call.ts 100.00% <ø> (ø)
...eslint-plugin/src/rules/no-unsafe-member-access.ts 100.00% <ø> (ø)
...ckages/eslint-plugin/src/rules/no-unsafe-return.ts 95.00% <ø> (ø)
...nt-plugin/src/rules/no-untyped-public-signature.ts 100.00% <ø> (ø)
... and 7 more

Copy link
Member

@bradzacher bradzacher left a comment

Choose a reason for hiding this comment

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

thanks!

@bradzacher bradzacher added bug Something isn't working repo maintenance things to do with maintenance of the repo, and not with code/docs and removed bug Something isn't working labels Apr 26, 2020
@bradzacher bradzacher changed the title chore(eslint-plugin): standardize sentences in rule messages chore(eslint-plugin): standardise sentences in rule messages Apr 26, 2020
@bradzacher bradzacher merged commit f91ff20 into typescript-eslint:master Apr 26, 2020
@vostrnad vostrnad deleted the rule-messages branch April 26, 2020 18:46
@vostrnad
Copy link
Contributor Author

Thanks for merging!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
repo maintenance things to do with maintenance of the repo, and not with code/docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants