Skip to content

Commit

Permalink
fix: eslint no-script-component-in-head error url (#40422)
Browse files Browse the repository at this point in the history
## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

## Documentation / Examples

- [x] Make sure the linting passes by running `pnpm lint`
- [x] The examples guidelines are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing.md#adding-examples)


Co-authored-by: JJ Kasper <22380829+ijjk@users.noreply.github.com>
  • Loading branch information
Djo1e and ijjk committed Sep 12, 2022
1 parent 7355757 commit 804dc6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
@@ -1,5 +1,4 @@
const url =
'https://nextjs.org/docs/messages/no-script-component-in-head-component'
const url = 'https://nextjs.org/docs/messages/no-script-component-in-head'

module.exports = {
meta: {
Expand Down
Expand Up @@ -44,7 +44,7 @@ ruleTester.run('no-script-in-head', rule, {
errors: [
{
message:
'`next/script` should not be used in `next/head` component. Move `<Script />` outside of `<Head>` instead. See: https://nextjs.org/docs/messages/no-script-component-in-head-component',
'`next/script` should not be used in `next/head` component. Move `<Script />` outside of `<Head>` instead. See: https://nextjs.org/docs/messages/no-script-component-in-head',
},
],
},
Expand Down

0 comments on commit 804dc6b

Please sign in to comment.