※, TSLINT配置相关
- TSLint-如何避免我的所有代码都用红色下划线?
- https://palantir.github.io/tslint/usage/configuration/
- https://github.com/Microsoft/vscode-tslint/blob/main/tslint-tests/tslint.json 【配置文件示例】
-
{ // "linterOptions": { "exclude": [ "./**/arrow-parens.ts" ]}, "rules": { "no-consecutive-blank-lines": true, "array-type": [ true, "array-simple" ], "arrow-parens": true, "no-var-keyword": true, "no-unused-variable": [ true, { "ignore-pattern": "^_" } ], "ordered-imports": [ true, { "import-sources-order": "lowercase-last", "named-imports-order": "lowercase-first" } ], "trailing-comma": [ true, { "multiline": "always", "singleline": "never" } ], "class-name": true, "comment-format": [ true, "check-space" ], "indent": [ true, "spaces" ], "no-eval": true, "no-internal-module": true, "no-trailing-whitespace": true, "no-unsafe-finally": true, "one-line": [ true, "check-open-brace", "check-whitespace" ], "quotemark": [ true, "double" ], "semicolon": [ true, "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": [ true, "ban-keywords" ], "whitespace": [ true, "check-branch", "check-decl", "check-operator", "check-separator", "check-type" ] }, "jsRules": { "triple-equals": [ true, "allow-null-check" ] }, "defaultSeverity": "warning" }
※,