From 575b5d2ed4982c0f1d48f024cb3c80a7551363e8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 8 Sep 2021 17:19:09 +0200 Subject: [PATCH] feat(deps): bump @next/eslint-plugin-next from 11.0.0 to 11.1.2 (#195) * Bump @next/eslint-plugin-next from 11.0.0 to 11.1.2 Bumps [@next/eslint-plugin-next](https://github.com/vercel/next.js/tree/HEAD/packages/eslint-plugin-next) from 11.0.0 to 11.1.2. - [Release notes](https://github.com/vercel/next.js/releases) - [Changelog](https://github.com/vercel/next.js/blob/canary/release.js) - [Commits](https://github.com/vercel/next.js/commits/v11.1.2/packages/eslint-plugin-next) --- updated-dependencies: - dependency-name: "@next/eslint-plugin-next" dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * test: update tests Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Bertrand Marron --- .../@next/next/google-font-display.correct.js | 2 ++ .../next/google-font-display.incorrect.js | 2 ++ .../next/google-font-preconnect.correct.js | 2 ++ .../next/google-font-preconnect.incorrect.js | 2 ++ .../@next/next/no-css-tags.correct.js | 2 ++ .../@next/next/no-css-tags.incorrect.js | 2 ++ __tests__/next.js | 2 +- yarn.lock | 22 +++++-------------- 8 files changed, 19 insertions(+), 17 deletions(-) diff --git a/__tests__/__fixtures__/@next/next/google-font-display.correct.js b/__tests__/__fixtures__/@next/next/google-font-display.correct.js index 2b8ce61..fa000dc 100644 --- a/__tests__/__fixtures__/@next/next/google-font-display.correct.js +++ b/__tests__/__fixtures__/@next/next/google-font-display.correct.js @@ -1,3 +1,5 @@ +/* eslint-disable @next/next/no-document-import-in-page */ + import Document, {Head} from 'next/document' export default class Doc extends Document { diff --git a/__tests__/__fixtures__/@next/next/google-font-display.incorrect.js b/__tests__/__fixtures__/@next/next/google-font-display.incorrect.js index 6ca42eb..584a080 100644 --- a/__tests__/__fixtures__/@next/next/google-font-display.incorrect.js +++ b/__tests__/__fixtures__/@next/next/google-font-display.incorrect.js @@ -1,3 +1,5 @@ +/* eslint-disable @next/next/no-document-import-in-page */ + import Document, {Head} from 'next/document' export default class Doc extends Document { diff --git a/__tests__/__fixtures__/@next/next/google-font-preconnect.correct.js b/__tests__/__fixtures__/@next/next/google-font-preconnect.correct.js index 2b8ce61..fa000dc 100644 --- a/__tests__/__fixtures__/@next/next/google-font-preconnect.correct.js +++ b/__tests__/__fixtures__/@next/next/google-font-preconnect.correct.js @@ -1,3 +1,5 @@ +/* eslint-disable @next/next/no-document-import-in-page */ + import Document, {Head} from 'next/document' export default class Doc extends Document { diff --git a/__tests__/__fixtures__/@next/next/google-font-preconnect.incorrect.js b/__tests__/__fixtures__/@next/next/google-font-preconnect.incorrect.js index 728f415..22d48c3 100644 --- a/__tests__/__fixtures__/@next/next/google-font-preconnect.incorrect.js +++ b/__tests__/__fixtures__/@next/next/google-font-preconnect.incorrect.js @@ -1,3 +1,5 @@ +/* eslint-disable @next/next/no-document-import-in-page */ + import Document, {Head} from 'next/document' export default class Doc extends Document { diff --git a/__tests__/__fixtures__/@next/next/no-css-tags.correct.js b/__tests__/__fixtures__/@next/next/no-css-tags.correct.js index 0e7a01c..b158ae0 100644 --- a/__tests__/__fixtures__/@next/next/no-css-tags.correct.js +++ b/__tests__/__fixtures__/@next/next/no-css-tags.correct.js @@ -1,3 +1,5 @@ +/* eslint-disable @next/next/no-document-import-in-page */ + import Document, {Head} from 'next/document' const path = '/style.css' diff --git a/__tests__/__fixtures__/@next/next/no-css-tags.incorrect.js b/__tests__/__fixtures__/@next/next/no-css-tags.incorrect.js index 6b8bd6e..00a1795 100644 --- a/__tests__/__fixtures__/@next/next/no-css-tags.incorrect.js +++ b/__tests__/__fixtures__/@next/next/no-css-tags.incorrect.js @@ -1,3 +1,5 @@ +/* eslint-disable @next/next/no-document-import-in-page */ + import Document, {Head} from 'next/document' export default class Doc extends Document { diff --git a/__tests__/next.js b/__tests__/next.js index 205f50b..b13b772 100644 --- a/__tests__/next.js +++ b/__tests__/next.js @@ -55,7 +55,7 @@ describe('@next/next/link-passhref', () => { expect(result.messages).toHaveLength(1) expect(result.messages[0].ruleId).toBe('@next/next/link-passhref') - expect(result.messages[0].message).toBe('passHref is missing. See https://nextjs.org/docs/messages/link-passhref.') + expect(result.messages[0].message).toBe('passHref is missing. See https://nextjs.org/docs/messages/link-passhref') }) }) diff --git a/yarn.lock b/yarn.lock index 8a62639..93151e0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -856,9 +856,11 @@ chalk "^4.0.0" "@next/eslint-plugin-next@^11.0.0": - version "11.0.0" - resolved "https://registry.yarnpkg.com/@next/eslint-plugin-next/-/eslint-plugin-next-11.0.0.tgz#e6fb93a00bdaba371904f2b2698b184e6278d369" - integrity sha512-fPZ0904yY1box6bRpR9rJqIkNxJdvzzxH7doXS+cdjyBAdptMR7wj3mcx1hEikBHzWduU8BOXBvRg2hWc09YDQ== + version "11.1.2" + resolved "https://registry.yarnpkg.com/@next/eslint-plugin-next/-/eslint-plugin-next-11.1.2.tgz#f26cf90bcb6cd2e4645e2ba253bbc9aaaa43a170" + integrity sha512-cN+ojHRsufr9Yz0rtvjv8WI5En0RPZRJnt0y16Ha7DD+0n473evz8i1ETEJHmOLeR7iPJR0zxRrxeTN/bJMOjg== + dependencies: + glob "7.1.7" "@nodelib/fs.scandir@2.1.4": version "2.1.4" @@ -3571,19 +3573,7 @@ glob-parent@^5.1.0, glob-parent@^5.1.2: dependencies: is-glob "^4.0.1" -glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4: - version "7.1.6" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.6.tgz#141f33b81a7c2492e125594307480c46679278a6" - integrity sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA== - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.0.4" - once "^1.3.0" - path-is-absolute "^1.0.0" - -glob@^7.1.6, glob@^7.1.7: +glob@7.1.7, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6, glob@^7.1.7: version "7.1.7" resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.7.tgz#3b193e9233f01d42d0b3f78294bbeeb418f94a90" integrity sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==