rsnext/packages/eslint-plugin-next/lib
Kara 61ea8efe42
Warn in dev mode when script tags are added with next/head (#33968)
This commit adds a development mode warning in the console
if you try to include <script> tags in next/head, e.g.

```
<Head>
  <script async src="..." />
</Head>
```

The warning message explains that this pattern will not
work well with Suspense/streaming and recommends using the
next/script component instead.

TODO in follow-up PR: add same warning for stylesheets, etc

## Feature

- [x] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [x] Integration tests added
- [x] Documentation added
- [x] Errors have helpful link attached, see `contributing.md`
2022-02-04 13:06:55 +00:00
..
rules Warn in dev mode when script tags are added with next/head (#33968) 2022-02-04 13:06:55 +00:00
utils [ESLint] Prevent no-html-link-for-pages from warning for static files (#31495) 2021-11-19 03:39:36 +00:00
index.js Warn in dev mode when script tags are added with next/head (#33968) 2022-02-04 13:06:55 +00:00