rsnext/packages/eslint-plugin-next/lib/rules
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
..
google-font-display.js ESLint Plugin: Google Font rules (#24766) 2021-05-10 10:03:28 +02:00
google-font-preconnect.js ESLint Plugin: Google Font rules (#24766) 2021-05-10 10:03:28 +02:00
link-passhref.js ESLint Plugin: passHref is not assigned (#24670) 2021-05-10 18:35:11 +00:00
no-css-tags.js Adds ESLint with default rule-set (#23702) 2021-04-30 11:09:07 +00:00
no-document-import-in-page.js ESLint Plugin: Prevent bad imports of next/document and next/head (#24832) 2021-05-10 21:28:06 +00:00
no-head-import-in-document.js ESLint Plugin: Prevent bad imports of next/document and next/head (#24832) 2021-05-10 21:28:06 +00:00
no-html-link-for-pages.js Adds ESLint with default rule-set (#23702) 2021-04-30 11:09:07 +00:00
no-page-custom-font.js ESLint Plugin: Custom Font at page-level rule (#24789) 2021-05-10 19:08:14 +00:00
no-sync-scripts.js Adds ESLint with default rule-set (#23702) 2021-04-30 11:09:07 +00:00
no-title-in-document-head.js ESLint Plugin: Disallow <title> in Head from next/document (#24868) 2021-05-07 08:49:37 +00:00
no-unwanted-polyfillio.js Adds ESLint with default rule-set (#23702) 2021-04-30 11:09:07 +00:00