From 42d733b8cbda5e46d82a3cdf5c4fc454146b6328 Mon Sep 17 00:00:00 2001 From: Seiya <20365512+seiyab@users.noreply.github.com> Date: Mon, 23 Jun 2025 09:15:40 +0900 Subject: [PATCH] Improve .prettierignore file (#17632) Co-authored-by: fisker --- .prettierignore | 3 +++ .../flow-repo/esproposal_decorators.ignore/format.test.js | 2 +- .../format/flow-repo/esproposal_decorators.warn/format.test.js | 3 +-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.prettierignore b/.prettierignore index 169137774..112dc9763 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,6 +1,9 @@ **/.yarn/* +# Ignore directories and files in 'tests/format' /tests/format/**/*.* +# Unignore directories and 'format.test.js' file +!/tests/format/**/ !/tests/format/**/format.test.js /tests/integration/cli/ /tests/integration/plugins/**/*.* diff --git a/tests/format/flow-repo/esproposal_decorators.ignore/format.test.js b/tests/format/flow-repo/esproposal_decorators.ignore/format.test.js index 34b3a8537..ce5204f18 100644 --- a/tests/format/flow-repo/esproposal_decorators.ignore/format.test.js +++ b/tests/format/flow-repo/esproposal_decorators.ignore/format.test.js @@ -1,5 +1,5 @@ runFormatTest(import.meta, ["flow"], { errors: { - hermes:["test.js"], + hermes: ["test.js"], }, }); diff --git a/tests/format/flow-repo/esproposal_decorators.warn/format.test.js b/tests/format/flow-repo/esproposal_decorators.warn/format.test.js index c1ee18c7b..a96332ef8 100644 --- a/tests/format/flow-repo/esproposal_decorators.warn/format.test.js +++ b/tests/format/flow-repo/esproposal_decorators.warn/format.test.js @@ -1,2 +1 @@ -runFormatTest(import.meta, ["flow"], {errors: { hermes: ["test.js"] } -}); +runFormatTest(import.meta, ["flow"], { errors: { hermes: ["test.js"] } });