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 77 * @format
88 */
99
10+ let plugins = [ 'prettier-plugin-hermes-parser' ] ;
11+ try {
12+ plugins = require ( './.prettier-plugins.fb.js' ) ;
13+ } catch { }
14+
1015module . exports = {
1116 arrowParens : 'avoid' ,
1217 bracketSameLine : true ,
@@ -15,14 +20,7 @@ module.exports = {
1520 singleQuote : true ,
1621 trailingComma : 'all' ,
1722 endOfLine : 'lf' ,
18- plugins : [
19- // Using module.parent and createRequire hack to simulate prettier v2 plugin resolution behavior.
20- // The hack allows us to resolve the plugin from the install location of prettier.
21- ( module . parent
22- ? require ( 'module' ) . createRequire ( module . parent . id )
23- : require
24- ) . resolve ( 'prettier-plugin-hermes-parser' ) ,
25- ] ,
23+ plugins,
2624 overrides : [
2725 {
2826 files : [ '*.code-workspace' ] ,
You can’t perform that action at this time.
0 commit comments