我使用ng new test-app创建了一个全新的angular应用程序,在devDependencies中添加了Prettier并安装了它,并禁用了VSCode中除Prettier之外的所有扩展。问题是,当我将VSCode设置为在保存时格式化时,它总是删除typescript数组和对象中的尾随逗号。我在.prettierrc.json中设置了"trailingComma":"all",在se
可能'eslint‘说的是:prettier重新格式化后的indent: Expected indentation of 2 spaces but found 4.。typescript-eslint/recommended', // Uses the recommended rules from @typescript-eslint/eslint-plugin 'plugin:<e
'@Component({ templateUrl: "./message-list.component.html",当你像选择器一样保存文件时,我需要做什么设置:import { MessageVM } from "../message-section/message.vm" to import { Mes