Match Prettier coverage with arc f (#58460)

Summary:
Pull Request resolved: https://github.com/react/react-native/pull/58460

Use the public Prettier configuration for the complete OSS JavaScript and documentation surface. Expose `yarn format-javascript` and `yarn format-check-javascript`, and compose them into the repository-wide commands.

Changelog: [Internal]

Reviewed By: javache

Differential Revision: D119487610

fbshipit-source-id: 32e98182f6dce16285f59418775764f15bbbc880
This commit is contained in:
Nicola Corti
2026-09-15 11:23:27 -07:00
committed by meta-codesync[bot]
parent 810e2a35ca
commit 7d7b585725
+4 -3
View File
@@ -15,8 +15,10 @@
"cxx-api-validate": "python -m scripts.cxx-api.parser --validate",
"flow-check": "flow full-check",
"flow": "flow",
"format-check": "prettier --list-different \"./**/*.{js,md,yml,ts,tsx}\"",
"format": "npm run prettier && npm run clang-format",
"format-check": "yarn format-check-javascript",
"format-check-javascript": "prettier --check \"./**/*.{cjs,cts,flow,js,jsx,md,mjs,mts,ts,tsx,yaml,yml}\"",
"format": "yarn format-javascript && yarn clang-format",
"format-javascript": "prettier --write \"./**/*.{cjs,cts,flow,js,jsx,md,mjs,mts,ts,tsx,yaml,yml}\"",
"featureflags": "yarn --cwd packages/react-native featureflags",
"js-api-diff": "node ./scripts/js-api/diff-api-snapshot",
"lint-kotlin-check": "./gradlew ktfmtCheck",
@@ -24,7 +26,6 @@
"lint-markdown": "markdownlint-cli2 2>&1",
"lint": "eslint --max-warnings 0 .",
"preinstall": "node ./scripts/try-set-hermes-compiler-prebuilt.js",
"prettier": "prettier --write \"./**/*.{js,md,yml,ts,tsx}\"",
"shellcheck": "./.github/workflow-scripts/analyze_scripts.sh",
"start": "yarn --cwd packages/rn-tester start",
"set-version": "node ./scripts/releases/set-version.js",