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