有什么方法可以配置
tslint
在通常情况下需要空格,但在
check-module
(示例:导入)案例。
我们有一些不一致之处,因为不同的工具以不同的间距生成/复制。
import {ComponentFixture} from "@angular/core/testing";
import { DebugElement } from "@angular/core"; // <-- Based on what I want to configure, this should generate white-space warning
我不确定这是否足够清楚,如果这有任何意义,让我试着用config来展示这个想法:
有这样的东西吗(
tslint.config
):
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-separator",
"check-type"
],
"whitespace": [
false,
"check-module"
],
我相信我不是第一个面对这个问题的人。任何参考/提示都会有所帮助。