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', diff --git a/package.json b/package.json index 8e127c86..96107c11 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",