mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
tooling(typings): new linter for typings (#3827)
This commit is contained in:
80
tslint.json
80
tslint.json
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user