Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Commit

Permalink
Remove period for ESLint passHref docs link. (vercel#26402)
Browse files Browse the repository at this point in the history
Due to the period at the end of this sentence, when clicking on the link it would 404. This PR simply removes the period from the message.
  • Loading branch information
leerob committed Jun 20, 2021
1 parent f3e1a01 commit bf949b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/eslint-plugin-next/lib/rules/link-passhref.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ module.exports = {
attributes.value('passHref') !== true
? 'must be set to true'
: 'is missing'
}. See https://nextjs.org/docs/messages/link-passhref.`,
}. See https://nextjs.org/docs/messages/link-passhref`,
})
}
},
Expand Down
4 changes: 2 additions & 2 deletions test/eslint-plugin-next/link-passhref.unit.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ ruleTester.run('link-passhref', rule, {
errors: [
{
message:
'passHref is missing. See https://nextjs.org/docs/messages/link-passhref.',
'passHref is missing. See https://nextjs.org/docs/messages/link-passhref',
type: 'JSXOpeningElement',
},
],
Expand All @@ -70,7 +70,7 @@ ruleTester.run('link-passhref', rule, {
errors: [
{
message:
'passHref must be set to true. See https://nextjs.org/docs/messages/link-passhref.',
'passHref must be set to true. See https://nextjs.org/docs/messages/link-passhref',
type: 'JSXOpeningElement',
},
],
Expand Down

0 comments on commit bf949b3

Please sign in to comment.