semicolons的Eslint有选项omitLastInOneLineBlock
:
"semi": ["error", "always", { "omitLastInOneLineBlock": true }],
我想在tslint中使用类似的设置。我该如何配置?
这是我的tslint.json
:
{
"defaultSeverity": "error",
"extends": [
"tslint:latest",
"tslint-react"
],
"jsRules": {},
"rules": {
"no-unused-expression": [true, "allow-fast-null-checks"]
},
"rulesDirectory": []
}