Skip to content

Commit

Permalink
Remove period for ESLint passHref docs link. (#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 authored Jun 20, 2021
1 parent eac0374 commit ad5e9bd
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 ad5e9bd

Please sign in to comment.