-
Notifications
You must be signed in to change notification settings - Fork 404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
请问在转换的过程中,可以指定prettier格式吗? #166
Labels
bug
Something isn't working
Comments
哈哈哈我和你一样。 return prettier.format(sourceCode, {
trailingComma: 'es5',
tabWidth: 4,
semi: true,
singleQuote: true,
printWidth: 120,
parser: /\.vue$/.test(fileInfo.path) ? 'vue' : 'typescript',
}); 或者你可以提个PR给他们😁 |
是的,我也是去npm包里面改了,感人。 |
提了一个PR #168 |
大神🐂🍺👍🎉 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
在使用
gogocode -s src -o src-out -t gogocode-plugin-vue
转换的时候,发现 gogocode-plugin-vue 里的prettier与项目原本用的prettier不一致,导致很多转换后的代码,需要再转换一次;请问有没有方式,可以指定转换prettier配置文件,比如是
gogocode -s src -o src-out -t gogocode-plugin-vue -p prettierfile=xxxxxxx
The text was updated successfully, but these errors were encountered: