提交 cd88417f 编写于 作者: M Matt Bierner

Enabling a few more tslint rules in the codebase

上级 9e4daf60
......@@ -26,6 +26,7 @@ suite('Keytar', () => {
try {
await keytar.deletePassword(name, 'foo');
} finally {
// tslint:disable-next-line: no-unsafe-finally
throw err;
}
}
......
......@@ -1008,8 +1008,6 @@ export namespace LogLevel {
return _MainLogLevel.Error;
case types.LogLevel.Critical:
return _MainLogLevel.Critical;
case types.LogLevel.Critical:
return _MainLogLevel.Critical;
case types.LogLevel.Off:
return _MainLogLevel.Off;
}
......@@ -1031,8 +1029,6 @@ export namespace LogLevel {
return types.LogLevel.Error;
case _MainLogLevel.Critical:
return types.LogLevel.Critical;
case _MainLogLevel.Critical:
return types.LogLevel.Critical;
case _MainLogLevel.Off:
return types.LogLevel.Off;
}
......
......@@ -3,11 +3,22 @@
"build/lib/tslint"
],
"rules": {
"no-construct": true,
"no-duplicate-super": true,
"no-duplicate-switch-case": true,
"no-duplicate-variable": true,
"no-eval": true,
"no-sparse-arrays": true,
"no-string-throw": true,
"no-unbound-method": [
true,
"ignore-static"
],
"no-unsafe-finally": true,
"no-unused-expression": true,
"no-duplicate-variable": true,
"curly": true,
"class-name": true,
"label-position": true,
"semicolon": [
true,
"always"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册