File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,16 +31,12 @@ export default class Prettier extends Rule {
3131
3232 const prettierRcOptions = prettier . resolveConfig . sync ( filepath , {
3333 editorconfig : true ,
34- } ) ;
34+ } ) ;
3535
36- return Object . assign (
37- { } ,
38- { parser : "glimmer" } ,
39- prettierRcOptions ,
36+ return Object . assign ( { } , { parser : "glimmer" } , prettierRcOptions ,
4037 {
4138 filepath,
42- }
43- ) ;
39+ } ) ;
4440 }
4541
4642 visitor ( ) {
@@ -57,16 +53,16 @@ export default class Prettier extends Rule {
5753 prettier . clearConfigCache ( ) ;
5854 }
5955
60- const source = this . sourceForNode ( node ) ;
61-
56+ const source = this . sourceForNode ( node ) ;
57+
6258 // Skip if file is ignored using a .prettierignore file
6359 if ( prettierFileInfo . ignored ) {
6460 return ;
6561 }
6662
6763 const prettierOptions = this . getPrettierOptions ( ) ;
6864
69- const prettierFileInfo = prettier . getFileInfo . sync ( filepath , {
65+ const prettierFileInfo = prettier . getFileInfo . sync ( prettierOptions . filepath , {
7066 ignorePath : ".prettierignore" ,
7167 } ) ;
7268
You can’t perform that action at this time.
0 commit comments