From b323ca553be74f539136376fb3131e30d7060ac6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 10 Jan 2023 00:00:32 +0000 Subject: [PATCH 1/2] build(deps-dev): bump eslint-plugin-unicorn from 44.0.2 to 45.0.2 Bumps [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) from 44.0.2 to 45.0.2. - [Release notes](https://github.com/sindresorhus/eslint-plugin-unicorn/releases) - [Commits](https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v44.0.2...v45.0.2) --- updated-dependencies: - dependency-name: eslint-plugin-unicorn dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f1338825..132e1bc1 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,7 @@ "eslint-plugin-markdown": "^3.0.0", "eslint-plugin-node": "^11.1.0", "eslint-plugin-prettier": "^4.2.1", - "eslint-plugin-unicorn": "^44.0.0", + "eslint-plugin-unicorn": "^45.0.2", "eslint-remote-tester": "^3.0.0", "eslint-scope": "^7.1.1", "espree": "^9.4.0", From 5228061084fddac119fef69cb42be03543a8dea7 Mon Sep 17 00:00:00 2001 From: Bryan Mishkin <698306+bmish@users.noreply.github.com> Date: Fri, 20 Jan 2023 18:37:11 -0500 Subject: [PATCH 2/2] fix lint --- lib/rules/require-meta-docs-url.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/rules/require-meta-docs-url.js b/lib/rules/require-meta-docs-url.js index 4ef85063..0894c67a 100644 --- a/lib/rules/require-meta-docs-url.js +++ b/lib/rules/require-meta-docs-url.js @@ -112,9 +112,10 @@ module.exports = { metaNode || ruleInfo.create, + // eslint-disable-next-line unicorn/no-negated-condition -- actually more clear like this messageId: !urlPropNode ? 'missing' - : // eslint-disable-next-line unicorn/no-nested-ternary -- this is fine for now + : // eslint-disable-next-line unicorn/no-nested-ternary,unicorn/no-negated-condition -- this is fine for now !expectedUrl ? 'wrongType' : /* otherwise */ 'mismatch',