[prettier] Combine compiler and runtime configs

Merges the existing config to the root one so we can have a single
configuration file. I've tried to keep the compiler config as much as
possible in this PR so that no formatting changes occur.

ghstack-source-id: 8bbfc9f269
Pull Request resolved: https://github.com/facebook/react/pull/30021
This commit is contained in:
Lauren Tan
2024-06-21 11:41:25 -04:00
parent 49a4887586
commit 49c37048de
9 changed files with 48 additions and 53 deletions

View File

@@ -6,6 +6,8 @@
*/
'use strict';
const compilerPaths = ['compiler/**'];
// Files that are transformed and can use ES6/Flow/JSX.
const esNextPaths = [
// Internal forwarding modules
@@ -28,6 +30,7 @@ const es5Paths = ['packages/*/npm/**/*.js'];
const typescriptPaths = ['packages/**/*.d.ts'];
module.exports = {
compilerPaths,
esNextPaths,
es5Paths,
typescriptPaths,