From c8455804ddcb218d80e6e3b8736120e092a8f67c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Norte?= Date: Fri, 11 Apr 2025 07:52:26 -0700 Subject: [PATCH] Disable default markdownlint rules to prevent conflicts with prettier (#50649) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/50649 Changelog: [internal] `markdownlint` failed on https://github.com/facebook/react-native/actions/runs/14400262967/job/40384250331?fbclid=IwZXh0bgNhZW0CMTEAAR51hcoM4zuGTG4SNbqas4z9X0FsIO8Y9DsCgxJepvD5qSdDezhhIV-uLTpn5w_aem_FF2OiYft3uMzK4xJrKGvuA because lines were too long, but that's already handled by Prettier and I thought that I had disabled that rule in the configuration/ It turns out you have to explicitly set `default: false` to actually disable the default rules and only use the options explicitly set in the config (which this does). Reviewed By: andrewdacenko Differential Revision: D72855229 fbshipit-source-id: 8e0c74e8e47e298ebf1450b1a0e31f31179c626c --- .markdownlint-cli2.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/.markdownlint-cli2.mjs b/.markdownlint-cli2.mjs index c856ac8c565..7ff905477b4 100644 --- a/.markdownlint-cli2.mjs +++ b/.markdownlint-cli2.mjs @@ -11,6 +11,7 @@ import relativeLinksRule from 'markdownlint-rule-relative-links'; const config = { config: { + default: false, 'heading-increment': true, 'no-reversed-links': true, 'no-missing-space-atx': true,