rsnext/packages/eslint-plugin-next/lib
Houssein Djirdeh 6d0150f02e
ESLint Plugin: Prevent bad imports of next/document and next/head (#24832)
Adds lint rules to the Next.js ESLint plugin to:

- Disallow importing `next/head` inside `pages/_document.js`
- Disallow importing `next/document` outside of `pages/_document.js`

Both rules will be surfaced as **errors** within the recommended config of the plugin.

Fixes #13712 #13958
2021-05-10 21:28:06 +00:00
..
rules ESLint Plugin: Prevent bad imports of next/document and next/head (#24832) 2021-05-10 21:28:06 +00:00
utils ESLint Plugin: Google Font rules (#24766) 2021-05-10 10:03:28 +02:00
index.js ESLint Plugin: Prevent bad imports of next/document and next/head (#24832) 2021-05-10 21:28:06 +00:00