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"] } });