Skip to content

Commit

Permalink
fix: correct the message when required to be all lowercase (#528)
Browse files Browse the repository at this point in the history
* fix: resolve issue where text is inconsistent when required to be all lowercase

* Update src/rules/prefer-lowercase-title.ts

---------

Co-authored-by: Verité Mugabo <[email protected]>
  • Loading branch information
Jannchie and veritem authored Sep 12, 2024
1 parent e66858b commit fccefaa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/rules/prefer-lowercase-title.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ export default createEslintRule<[
},
fixable: 'code',
messages: {
lowerCaseTitle: '`{{ method }}`s should begin with lowercase'
lowerCaseTitle: '`{{ method }}`s should begin with lowercase',
fullyLowerCaseTitle: '`{{ method }}`s should be lowercase'
},
schema: [
{
Expand Down Expand Up @@ -130,7 +131,7 @@ export default createEslintRule<[
) return

context.report({
messageId: 'lowerCaseTitle',
messageId: lowercaseFirstCharacterOnly ? 'lowerCaseTitle' : 'fullyLowerCaseTitle',
node: node.arguments[0],
data: {
method: vitestFnCall.name
Expand Down

0 comments on commit fccefaa

Please sign in to comment.