File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change 7
7
* @format
8
8
*/
9
9
10
+ let plugins = [ 'prettier-plugin-hermes-parser' ] ;
11
+ try {
12
+ plugins = require ( '../../.prettier-plugins.fb.js' ) ;
13
+ } catch { }
14
+
10
15
module . exports = {
11
16
arrowParens : 'avoid' ,
12
17
bracketSameLine : true ,
13
18
bracketSpacing : false ,
14
19
singleQuote : true ,
15
20
trailingComma : 'all' ,
16
- plugins : [
17
- // Using module.parent and createRequire hack to simulate prettier v2 plugin resolution behavior.
18
- // The hack allows us to resolve the plugin from the install location of prettier.
19
- ( module . parent
20
- ? require ( 'module' ) . createRequire ( module . parent . id )
21
- : require
22
- ) . resolve ( 'prettier-plugin-hermes-parser' ) ,
23
- ] ,
21
+ plugins,
24
22
overrides : [
25
23
{
26
24
files : [ '*.js' , '*.js.flow' ] ,
You can’t perform that action at this time.
0 commit comments