We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
在使用 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
gogocode -s src -o src-out -t gogocode-plugin-vue
gogocode -s src -o src-out -t gogocode-plugin-vue -p prettierfile=xxxxxxx
The text was updated successfully, but these errors were encountered:
哈哈哈我和你一样。 我临时改了全局npm包下面的gogocode-plugin-prettier和gogocode-plugin-vue的代码,这样再跑一遍就可以了:
gogocode-plugin-prettier
gogocode-plugin-vue
return prettier.format(sourceCode, { trailingComma: 'es5', tabWidth: 4, semi: true, singleQuote: true, printWidth: 120, parser: /\.vue$/.test(fileInfo.path) ? 'vue' : 'typescript', });
或者你可以提个PR给他们😁
Sorry, something went wrong.
哈哈哈我和你一样。 我临时改了全局npm包下面的gogocode-plugin-prettier和gogocode-plugin-vue的代码,这样再跑一遍就可以了: 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
大神🐂🍺👍🎉
No branches or pull requests
在使用
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: