File tree Expand file tree Collapse file tree 2 files changed +27
-9
lines changed Expand file tree Collapse file tree 2 files changed +27
-9
lines changed Original file line number Diff line number Diff line change
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @format
8
+ * @oncall relay
9
+ */
10
+
11
+ module . exports = {
12
+ arrowParens : 'avoid' ,
13
+ bracketSameLine : true ,
14
+ bracketSpacing : false ,
15
+ requirePragma : true ,
16
+ singleQuote : true ,
17
+ trailingComma : 'all' ,
18
+ parser : 'hermes' ,
19
+ plugins : [
20
+ // Using module.parent and createRequire hack to simulate prettier v2 plugin resolution behavior.
21
+ // The hack allows us to resolve the plugin from the install location of prettier.
22
+ ( module . parent
23
+ ? require ( 'module' ) . createRequire ( module . parent . id )
24
+ : require
25
+ ) . resolve ( 'prettier-plugin-hermes-parser' ) ,
26
+ ] ,
27
+ } ;
Original file line number Diff line number Diff line change 88
88
"node" : " >=18.x" ,
89
89
"npm" : " >=8.x"
90
90
},
91
- "prettier" : {
92
- "arrowParens" : " avoid" ,
93
- "bracketSameLine" : true ,
94
- "bracketSpacing" : false ,
95
- "requirePragma" : true ,
96
- "singleQuote" : true ,
97
- "trailingComma" : " all" ,
98
- "parser" : " hermes"
99
- },
100
91
"jest" : {
101
92
"testMatch" : [
102
93
" <rootDir>/packages/**/__tests__/**/*-test.js"
You can’t perform that action at this time.
0 commit comments