From ad5e9bd644e1e69e5108883b5a59033710561f86 Mon Sep 17 00:00:00 2001 From: Lee Robinson Date: Sun, 20 Jun 2021 17:55:03 -0500 Subject: [PATCH] Remove period for ESLint `passHref` docs link. (#26402) 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. --- packages/eslint-plugin-next/lib/rules/link-passhref.js | 2 +- test/eslint-plugin-next/link-passhref.unit.test.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/eslint-plugin-next/lib/rules/link-passhref.js b/packages/eslint-plugin-next/lib/rules/link-passhref.js index fc78090a8e3d6..af0f35596c7db 100644 --- a/packages/eslint-plugin-next/lib/rules/link-passhref.js +++ b/packages/eslint-plugin-next/lib/rules/link-passhref.js @@ -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`, }) } }, diff --git a/test/eslint-plugin-next/link-passhref.unit.test.js b/test/eslint-plugin-next/link-passhref.unit.test.js index b980fff496917..398f14e805b52 100644 --- a/test/eslint-plugin-next/link-passhref.unit.test.js +++ b/test/eslint-plugin-next/link-passhref.unit.test.js @@ -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', }, ], @@ -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', }, ],