Javascript 运行tslint仅检查typescript文件
更新到tslint 5.0.0后,我尝试运行以下命令:Javascript 运行tslint仅检查typescript文件,javascript,angular,typescript,intellij-idea,tslint,Javascript,Angular,Typescript,Intellij Idea,Tslint,更新到tslint 5.0.0后,我尝试运行以下命令: tslint -c tslint.json "src\app\**\*.ts" 在版本4.5.1中,此命令仅返回typescript文件(.ts)中的问题。但是现在,返回typescript(.ts)和html(.html)文件 更新1: 我的tslint.json文件(我也在使用codelyzer库,所以有些规则属于codelyzer): }您可以分享您的tslint.json吗? { "rulesDirectory": [
tslint -c tslint.json "src\app\**\*.ts"
在版本4.5.1中,此命令仅返回typescript文件(.ts)中的问题。但是现在,返回typescript(.ts)和html(.html)文件
更新1:
我的tslint.json文件(我也在使用codelyzer库,所以有些规则属于codelyzer):
}您可以分享您的tslint.json吗?
{
"rulesDirectory": [
"node_modules/codelyzer"
],
"rules": {
"class-name": true,
"comment-format": [
true,
"check-space"
],
"curly": true,
"eofline": true,
"forin": true,
"indent": [
true,
"spaces"
],
"label-position": true,
"max-line-length": [
true,
200
],
"member-access": false,
"member-ordering": [
true,
"static-before-instance",
"variables-before-functions"
],
"no-arg": true,
"no-bitwise": true,
"no-console": [
true,
"debug",
"info",
"time",
"timeEnd",
"trace"
],
"no-construct": true,
"no-debugger": true,
"no-duplicate-variable": true,
"no-empty": false,
"no-eval": true,
"no-inferrable-types": true,
"no-shadowed-variable": true,
"no-string-literal": false,
"no-switch-case-fall-through": true,
"no-trailing-whitespace": true,
"no-unused-expression": true,
"no-var-keyword": true,
"object-literal-sort-keys": false,
"one-line": [
true,
"check-open-brace",
"check-catch",
"check-else",
"check-whitespace"
],
"quotemark": [
true,
"single"
],
"radix": true,
"semicolon": [
"always"
],
"triple-equals": [
true,
"allow-null-check"
],
"typedef-whitespace": [
true,
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
}
],
"variable-name": false,
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-separator",
"check-type"
],
"directive-selector": [
true,
"attribute",
"app",
"camelCase"
],
"component-selector": [
true,
"element",
"app",
"kebab-case"
],
"use-input-property-decorator": true,
"use-output-property-decorator": true,
"use-host-property-decorator": true,
"no-input-rename": true,
"no-output-rename": true,
"use-life-cycle-interface": true,
"use-pipe-transform-interface": true,
"component-class-suffix": true,
"directive-class-suffix": true,
"no-access-missing-member": true,
"templates-use-public": true,
"invoke-injectable": true
}