Closed pastelInc closed 6 years ago
I tried using prettier-plugin-elm with pluginSearchDirs and plugins options.
pluginSearchDirs
plugins
plugins: [ new PrettierPlugin({ extensions: [ ".ts", ".tsx", ".elm" ], pluginSearchDirs: [ path.resolve(__dirname, "node_modules") ], plugins: [ "prettier-plugin-elm" ] }) ],
https://prettier.io/docs/en/plugins.html
However, since there is no filepath option, the prettier could not determine parser from filepath. (The default parser babylon was selected)
filepath
babylon
https://github.com/prettier/prettier/blob/1.14.2/src/main/options.js#L38-L40
Please consider merge so that parser of elm can be specified from filepath.
Interesting, thanks a ton for opening this!! 🙌
Just shipped in 1.1.0
1.1.0
I tried using prettier-plugin-elm with
pluginSearchDirs
andplugins
options.https://prettier.io/docs/en/plugins.html
However, since there is no
filepath
option, the prettier could not determine parser from filepath. (The default parserbabylon
was selected)https://github.com/prettier/prettier/blob/1.14.2/src/main/options.js#L38-L40
Please consider merge so that parser of elm can be specified from
filepath
.