Skip to content

Commit

Permalink
Update the text for eslint/no-page-custom-font rule (#25117)
Browse files Browse the repository at this point in the history
## Documentation / Examples

- [x] Make sure the linting passes
  • Loading branch information
rgabs authored May 19, 2021
1 parent 784c30c commit 4688cfe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ module.exports = {
context.report({
node,
message:
'Custom fonts should be added at the document level. See https://nextjs.org/docs/messages/no-page-custom-font.',
'Custom fonts not added at the document level will only load for a single page. This is discouraged. See https://nextjs.org/docs/messages/no-page-custom-font.',
})
}
},
Expand Down
4 changes: 2 additions & 2 deletions test/eslint-plugin-next/no-page-custom-font.unit.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ ruleTester.run('no-page-custom-font', rule, {
errors: [
{
message:
'Custom fonts should be added at the document level. See https://nextjs.org/docs/messages/no-page-custom-font.',
'Custom fonts not added at the document level will only load for a single page. This is discouraged. See https://nextjs.org/docs/messages/no-page-custom-font.',
type: 'JSXOpeningElement',
},
],
Expand Down Expand Up @@ -94,7 +94,7 @@ ruleTester.run('no-page-custom-font', rule, {
errors: [
{
message:
'Custom fonts should be added at the document level. See https://nextjs.org/docs/messages/no-page-custom-font.',
'Custom fonts not added at the document level will only load for a single page. This is discouraged. See https://nextjs.org/docs/messages/no-page-custom-font.',
type: 'JSXOpeningElement',
},
],
Expand Down

0 comments on commit 4688cfe

Please sign in to comment.