[英]Configuration of Prettier in vscode with Angular
我希望我的编辑器将注入构造函数的构造函数参数格式化为每个参数一行。
You don't have to do this for all arguments.您不必对所有参数都这样做。 You can use eslint rule:
您可以使用 eslint 规则:
function-paren-newline: ["error", { "minItems": 3 }]
https://eslint.org/docs/rules/function-paren-newline https://eslint.org/docs/rules/function-paren-newline
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.