Unverified Commit 2b7c910e authored by Christian Vuerings's avatar Christian Vuerings Committed by GitHub

Add ESLint docs URLs (#29645)

parent 80e5180e
...@@ -6,6 +6,7 @@ module.exports = { ...@@ -6,6 +6,7 @@ module.exports = {
description: description:
'Ensure correct font-display property is assigned for Google Fonts', 'Ensure correct font-display property is assigned for Google Fonts',
recommended: true, recommended: true,
url: 'https://nextjs.org/docs/messages/google-font-display',
}, },
}, },
create: function (context) { create: function (context) {
......
...@@ -5,6 +5,7 @@ module.exports = { ...@@ -5,6 +5,7 @@ module.exports = {
docs: { docs: {
description: 'Ensure preconnect is used with Google Fonts', description: 'Ensure preconnect is used with Google Fonts',
recommended: true, recommended: true,
url: 'https://nextjs.org/docs/messages/google-font-preconnect',
}, },
}, },
create: function (context) { create: function (context) {
......
...@@ -4,6 +4,7 @@ module.exports = { ...@@ -4,6 +4,7 @@ module.exports = {
description: description:
'next/script components with inline content must specify an `id` attribute.', 'next/script components with inline content must specify an `id` attribute.',
recommended: true, recommended: true,
url: 'https://nextjs.org/docs/messages/inline-script-id',
}, },
}, },
create: function (context) { create: function (context) {
......
...@@ -7,6 +7,7 @@ module.exports = { ...@@ -7,6 +7,7 @@ module.exports = {
'Ensure passHref is assigned if child of Link component is a custom component', 'Ensure passHref is assigned if child of Link component is a custom component',
category: 'HTML', category: 'HTML',
recommended: true, recommended: true,
url: 'https://nextjs.org/docs/messages/link-passhref',
}, },
fixable: null, fixable: null,
}, },
......
...@@ -22,6 +22,7 @@ module.exports = { ...@@ -22,6 +22,7 @@ module.exports = {
description: description:
'Prefer next script component when using the inline script for Google Analytics', 'Prefer next script component when using the inline script for Google Analytics',
recommended: true, recommended: true,
url: 'https://nextjs.org/docs/messages/next-script-for-ga',
}, },
}, },
create: function (context) { create: function (context) {
......
...@@ -6,6 +6,7 @@ module.exports = { ...@@ -6,6 +6,7 @@ module.exports = {
description: description:
'Disallow importing next/document outside of pages/document.js', 'Disallow importing next/document outside of pages/document.js',
recommended: true, recommended: true,
url: 'https://nextjs.org/docs/messages/no-document-import-in-page',
}, },
}, },
create: function (context) { create: function (context) {
......
...@@ -3,6 +3,7 @@ module.exports = { ...@@ -3,6 +3,7 @@ module.exports = {
docs: { docs: {
description: 'Enforce no duplicate usage of <Head> in pages/document.js', description: 'Enforce no duplicate usage of <Head> in pages/document.js',
recommended: true, recommended: true,
url: 'https://nextjs.org/docs/messages/no-duplicate-head',
}, },
}, },
create: function (context) { create: function (context) {
......
...@@ -5,6 +5,7 @@ module.exports = { ...@@ -5,6 +5,7 @@ module.exports = {
docs: { docs: {
description: 'Disallow importing next/head in pages/document.js', description: 'Disallow importing next/head in pages/document.js',
recommended: true, recommended: true,
url: 'https://nextjs.org/docs/messages/no-head-import-in-document',
}, },
}, },
create: function (context) { create: function (context) {
......
...@@ -25,6 +25,7 @@ module.exports = { ...@@ -25,6 +25,7 @@ module.exports = {
description: 'Prohibit full page refresh for Next.js pages', description: 'Prohibit full page refresh for Next.js pages',
category: 'HTML', category: 'HTML',
recommended: true, recommended: true,
url: 'https://nextjs.org/docs/messages/no-html-link-for-pages',
}, },
fixable: null, // or "code" or "whitespace" fixable: null, // or "code" or "whitespace"
schema: [ schema: [
......
...@@ -4,6 +4,7 @@ module.exports = { ...@@ -4,6 +4,7 @@ module.exports = {
description: 'Prohibit usage of HTML <img> element', description: 'Prohibit usage of HTML <img> element',
category: 'HTML', category: 'HTML',
recommended: true, recommended: true,
url: 'https://nextjs.org/docs/messages/no-img-element',
}, },
fixable: 'code', fixable: 'code',
}, },
......
...@@ -6,6 +6,7 @@ module.exports = { ...@@ -6,6 +6,7 @@ module.exports = {
description: description:
'Recommend adding custom font in a custom document and not in a specific page', 'Recommend adding custom font in a custom document and not in a specific page',
recommended: true, recommended: true,
url: 'https://nextjs.org/docs/messages/no-page-custom-font',
}, },
}, },
create: function (context) { create: function (context) {
......
...@@ -5,6 +5,7 @@ module.exports = { ...@@ -5,6 +5,7 @@ module.exports = {
docs: { docs: {
description: 'Disallow importing next/script inside pages/_document.js', description: 'Disallow importing next/script inside pages/_document.js',
recommended: true, recommended: true,
url: 'https://nextjs.org/docs/messages/no-script-in-document-page',
}, },
}, },
create: function (context) { create: function (context) {
......
...@@ -3,6 +3,7 @@ module.exports = { ...@@ -3,6 +3,7 @@ module.exports = {
docs: { docs: {
description: 'Disallow using next/script inside the next/head component', description: 'Disallow using next/script inside the next/head component',
recommended: true, recommended: true,
url: 'https://nextjs.org/docs/messages/no-script-in-head-component',
}, },
}, },
create: function (context) { create: function (context) {
......
...@@ -2,6 +2,7 @@ module.exports = { ...@@ -2,6 +2,7 @@ module.exports = {
meta: { meta: {
docs: { docs: {
description: 'Disallow using <title> with Head from next/document', description: 'Disallow using <title> with Head from next/document',
url: 'https://nextjs.org/docs/messages/no-title-in-document-head',
}, },
}, },
create: function (context) { create: function (context) {
......
...@@ -69,6 +69,7 @@ module.exports = { ...@@ -69,6 +69,7 @@ module.exports = {
'Prohibit unwanted features to be listed in Polyfill.io tag.', 'Prohibit unwanted features to be listed in Polyfill.io tag.',
category: 'HTML', category: 'HTML',
recommended: true, recommended: true,
url: 'https://nextjs.org/docs/messages/no-unwanted-polyfillio',
}, },
fixable: null, // or "code" or "whitespace" fixable: null, // or "code" or "whitespace"
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment