返回后使用花括号的TSLint规则

时间:2020-09-08 15:19:01

标签: typescript tslint

有人知道在这种情况下如何使TSLint失败吗?

     ↓
return{
    id: this.user.id,
    isAdmin: this.user.isAdmin,
    email: this.profileForm.value.email,
    password: this.profileForm.value.password,
    firstName: this.profileForm.value.firstName,
    secondName: this.profileForm.value.secondName,
    mobilePhone: this.profileForm.value.mobilePhone,
};

我有这样的tslint.json

"one-line": [true, "check-open-brace", "check-catch", "check-else", "check-whitespace"],
"whitespace": [true, "check-branch", "check-decl", "check-operator", "check-separator", "check-type"]

非常感谢!

0 个答案:

没有答案