File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ function isFile(loc) {
2020module . exports = class Prettier extends Rule {
2121 constructor ( options ) {
2222 super ( options ) ;
23- this . filePath = options . moduleName + ".hbs" ;
23+ this . filePath = options . filePath ;
2424 }
2525
2626 visitor ( ) {
Original file line number Diff line number Diff line change 3030 config : true ,
3131 template : "{{#my-component}}{{/my-component}}\n" ,
3232 result : {
33- moduleId : "layout.hbs " ,
33+ moduleId : "layout" ,
3434 message : "Delete `⏎`" ,
3535 line : 1 ,
3636 column : 34 ,
4141 config : true ,
4242 template : "test\n" ,
4343 result : {
44- moduleId : "layout.hbs " ,
44+ moduleId : "layout" ,
4545 message : "Delete `⏎`" ,
4646 line : 1 ,
4747 column : 4 ,
5656
5757{{/my-component}}` ,
5858 result : {
59- moduleId : "layout.hbs " ,
59+ moduleId : "layout" ,
6060 message : "Replace `⏎test⏎` with ` test`" ,
6161 line : 1 ,
6262 column : 18 ,
7070
7171{{/my-component}}` ,
7272 result : {
73- moduleId : "layout.hbs " ,
73+ moduleId : "layout" ,
7474 message : "Delete `⏎`" ,
7575 line : 2 ,
7676 column : 7 ,
You can’t perform that action at this time.
0 commit comments