tooling(typings): new linter for typings (#3827)

This commit is contained in:
Crawl
2020-02-24 17:56:44 +01:00
committed by GitHub
parent e6d22527bb
commit 98a552107e
4 changed files with 134 additions and 178 deletions

View File

@@ -1,62 +1,30 @@
{
"extends": [
"tslint-config-typings"
"dtslint/dtslint.json"
],
"rules": {
"class-name": true,
"comment-format": [
true,
"check-space"
],
"indent": [
true,
"tabs"
],
"no-duplicate-variable": true,
"no-unused-variable": [false],
"no-eval": true,
"no-internal-module": true,
"no-trailing-whitespace": true,
"no-unsafe-finally": true,
"no-var-keyword": true,
"one-line": [
true,
"check-open-brace",
"check-whitespace"
],
"quotemark": [
true,
"single"
],
"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"
]
"prefer-readonly": false,
"await-promise": false,
"no-for-in-array": false,
"no-null-undefined-union": false,
"no-promise-as-boolean": false,
"no-void-expression": false,
"strict-string-expressions": false,
"strict-comparisons": false,
"use-default-type-parameter": false,
"no-boolean-literal-compare": false,
"no-unnecessary-qualifier": false,
"no-unnecessary-type-assertion": false,
"expect": false,
"no-import-default-of-export-equals": false,
"no-relative-import-in-test": false,
"no-unnecessary-generics": false,
"strict-export-declare-modifiers": false,
"no-single-declare-module": false,
"member-access": true,
"no-unnecessary-class": false,
"array-type": [true, "array"],
"no-any-union": false
}
}