Thank you very much for doing this. I've tried this and checked that the overridden parser configured in .prettierrc.js was definitely used.
However, the file's mode-line shows different parser so I have a recommendation; how about putting detecting the parser code in bestParser like this?
function bestParser(prettier, parsers, options, filepath) {
if (options["parser"]) {
return options["parser"];
}
// ...
}
Thank you very much for doing this. I've tried this and checked that the overridden parser configured in
.prettierrc.js
was definitely used. However, the file's mode-line shows different parser so I have a recommendation; how about putting detecting the parser code inbestParser
like this?