accent/tslint.json

78 lines
2.4 KiB
JSON

{
"extends": ["tslint:latest", "tslint-config-prettier"],
"rules": {
"adjacent-overload-signatures": true,
"arrow-return-shorthand": true,
"ban-comma-operator": true,
"class-name": true,
"comment-format": [true, "check-space"],
"curly": [true, "ignore-same-line"],
"encoding": true,
"interface-name": false,
"max-classes-per-file": false,
"member-access": [true, "no-public"],
"newline-before-return": true,
"no-arg": true,
"no-conditional-assignment": true,
"no-console": false,
"no-consecutive-blank-lines": true,
"no-debugger": true,
"no-duplicate-imports": true,
"no-duplicate-super": true,
"no-duplicate-switch-case": true,
"no-duplicate-variable": [true, "check-parameters"],
"no-empty-interface": false,
"no-empty": false,
"no-eval": true,
"no-implicit-dependencies": false,
"no-non-null-assertion": false,
"no-parameter-reassignment": true,
"no-return-await": true,
"no-shadowed-variable": false,
"no-string-literal": true,
"no-string-throw": true,
"no-submodule-imports": false,
"no-switch-case-fall-through": true,
"no-this-assignment": [true, {"allow-destructuring": true}],
"no-unsafe-finally": true,
"no-unused-expression": [true, "allow-fast-null-checks"],
"no-var-keyword": true,
"number-literal-format": true,
"object-literal-key-quotes": [true, "as-needed"],
"one-variable-per-declaration": [true, "ignore-for-loop"],
"prefer-conditional-expression": true,
"prefer-const": true,
"prefer-for-of": true,
"prefer-object-spread": true,
"prefer-template": true,
"radix": true,
"triple-equals": [true, "allow-undefined-check", "allow-null-check"],
"typedef-whitespace": [
true,
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
},
{
"call-signature": "onespace",
"index-signature": "onespace",
"parameter": "onespace",
"property-declaration": "onespace",
"variable-declaration": "onespace"
}
],
"unified-signatures": true,
"use-isnan": true,
"variable-name": [
true,
"ban-keywords",
"check-format",
"allow-leading-underscore",
"allow-pascal-case"
]
}
}