Skip to content

Commit

Permalink
lint-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Feb 4, 2022
1 parent d156778 commit 4fbd885
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/next/shared/lib/head.tsx
Expand Up @@ -163,7 +163,9 @@ function reduceComponents(
}
if (process.env.NODE_ENV === 'development') {
if (c.type === 'script') {
const srcMessage = c.props['src'] ? `<script> tag with src="${c.props['src']}"` : `inline <script>`
const srcMessage = c.props['src']
? `<script> tag with src="${c.props['src']}"`
: `inline <script>`
console.warn(
`Do not add <script> tags using next/head (see ${srcMessage}). Use next/script instead. \nSee more info here: https://nextjs.org/docs/messages/no-script-tags-in-head-component`
)
Expand Down

0 comments on commit 4fbd885

Please sign in to comment.