tslint.json
{
"rulesDirectory": [
"node_modules/tslint-clean-code/dist/src",
"node_modules/tslint-microsoft-contrib"
],
"rules": {
"class-name": true,
"comment-format": [
true,
"check-space"
],
"indent": [
true,
"spaces",
4
],
"no-duplicate-variable": true,
"no-eval": true,
"no-internal-module": true,
"no-trailing-whitespace": true,
"no-unsafe-finally": true,
"no-var-keyword": true,
"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"
],
"object-literal-sort-keys": [true, "ignore-case"],
"array-type": [
true,
"array"
],
"arrow-return-shorthand": false,
"await-promise": false,
"adjacent-overload-signatures": false,
"align": [
false
],
"arrow-parens": false,
"ban": false,
"callable-types": true,
"chai-prefer-contains-to-index-of": true,
"completed-docs": [
false
],
"curly": true,
"cyclomatic-complexity": [
false
],
"eofline": false,
"export-name": false,
"file-header": [
false
],
"forin": true,
"function-name": [
true,
{
"static-method-regex": "^[a-z][\\w\\d]+$"
}
],
"id-length": [
true,
[
"_",
"T"
]
],
"import-blacklist": false,
"import-name": false,
"import-spacing": true,
"insecure-random": true,
"interface-name": false,
"interface-over-type-literal": false,
"jquery-deferred-must-complete": true,
"jsdoc-format": false,
"label-position": true,
"linebreak-style": [
true,
"LF"
],
"max-classes-per-file": [
false
],
"max-file-line-count": [
false
],
"max-func-body-length": [
true,
100,
{
"ignore-parameters-to-function-regex": "describe"
}
],
"max-line-length": [
true,
140
],
"max-func-args": [
true,
3
],
"member-access": true,
"member-ordering": [
false
],
"missing-optional-annotation": true,
"min-class-cohesion": false,
"mocha-avoid-only": true,
"mocha-no-side-effect-code": true,
"mocha-unneeded-done": true,
"new-parens": true,
"newspaper-order": true,
"no-angle-bracket-type-assertion": false,
"no-any": false,
"no-arg": true,
"no-banned-terms": true,
"no-bitwise": true,
"no-boolean-literal-compare": false,
"no-conditional-assignment": true,
"no-consecutive-blank-lines": [
true
],
"no-console": [
true,
"debug",
"info",
"log",
"time",
"timeEnd",
"trace"
],
"no-constant-condition": true,
"no-construct": true,
"no-control-regex": true,
"no-debugger": true,
"no-default-export": false,
"no-delete-expression": true,
"no-disable-auto-sanitization": true,
"no-document-domain": true,
"no-document-write": true,
"no-duplicate-parameter-names": true,
"no-duplicate-super": true,
"no-duplicate-switch-case": true,
"no-empty": true,
"no-empty-interface": true,
"no-empty-line-after-opening-brace": false,
"no-exec-script": true,
"no-flag-args": true,
"no-floating-promises": false,
"no-for-in": true,
"no-for-in-array": false,
"no-for-each-push": true,
"no-function-constructor-with-string-args": true,
"no-function-expression": true,
"no-http-string": true,
"no-import-side-effect": true,
"no-increment-decrement": true,
"no-inferrable-types": false,
"no-inferred-empty-object-type": false,
"no-inner-html": true,
"no-invalid-regexp": true,
"no-invalid-template-strings": true,
"no-jquery-raw-elements": true,
"no-magic-numbers": false,
"no-mergeable-namespace": false,
"no-missing-visibility-modifiers": false,
"no-misused-new": true,
"no-multiline-string": [
true
],
"no-multiple-var-decl": true,
"no-namespace": false,
"no-null-keyword": false,
"no-octal-literal": true,
"no-parameter-properties": false,
"no-reference": true,
"no-reference-import": true,
"no-regex-spaces": true,
"no-require-imports": false,
"no-reserved-keywords": true,
"no-shadowed-variable": false,
"no-single-line-block-comment": true,
"no-sparse-arrays": true,
"no-string-based-set-immediate": true,
"no-string-based-set-interval": true,
"no-string-based-set-timeout": true,
"no-string-literal": true,
"no-string-throw": true,
"no-switch-case-fall-through": true,
"no-this-assignment": true,
"no-typeof-undefined": true,
"no-unbound-method": false,
"no-unnecessary-bind": true,
"no-unnecessary-callback-wrapper": true,
"no-unnecessary-class": true,
"no-unnecessary-field-initialization": true,
"no-unnecessary-initializer": true,
"no-unnecessary-local-variable": true,
"no-unnecessary-override": true,
"no-unnecessary-qualifier": false,
"no-unnecessary-semicolons": true,
"no-unsafe-any": false,
"no-unsupported-browser-code": false,
"no-unused-expression": true,
"no-var-requires": false,
"no-void-expression": false,
"no-with-statement": true,
"non-literal-require": true,
"object-literal-key-quotes": false,
"object-literal-shorthand": false,
"object-literal-sort-keys": false,
"one-line": [
true,
"check-open-brace",
"check-catch",
"check-else",
"check-whitespace"
],
"one-variable-per-declaration": true,
"only-arrow-functions": [
true,
"allow-declarations",
"allow-named-functions"
],
"ordered-imports": [
false
],
"possible-timing-attack": true,
"prefer-array-literal": true,
"prefer-const": true,
"prefer-for-of": false,
"prefer-function-over-method": false,
"prefer-method-signature": true,
"prefer-template": false,
"prefer-type-cast": false,
"strict-type-predicates": false,
"promise-function-async": false,
"promise-must-complete": true,
"radix": false,
"react-a11y-anchors": true,
"react-a11y-aria-unsupported-elements": true,
"react-a11y-event-has-role": true,
"react-a11y-image-button-has-alt": true,
"react-a11y-img-has-alt": true,
"react-a11y-lang": true,
"react-a11y-meta": true,
"react-a11y-props": true,
"react-a11y-proptypes": true,
"react-a11y-role": true,
"react-a11y-role-has-required-aria-props": true,
"react-a11y-role-supports-aria-props": true,
"react-a11y-tabindex-no-positive": true,
"react-a11y-titles": true,
"react-anchor-blank-noopener": true,
"react-iframe-missing-sandbox": true,
"react-no-dangerous-html": true,
"react-this-binding-issue": true,
"react-tsx-curly-spacing": true,
"react-unused-props-and-state": true,
"restrict-plus-operands": false,
"space-before-function-paren": false,
"strict-boolean-expressions": false,
"switch-default": false,
"trailing-comma": [
true,
{
"singleline": "never",
"multiline": "ignore"
}
],
"try-catch-first": true,
"typedef": [
true,
"parameter",
"property-declaration",
"member-variable-declaration"
],
"unified-signatures": true,
"use-isnan": true,
"use-named-parameter": true,
"no-useless-files": true,
"no-map-without-usage": true,
"no-complex-conditionals": [
true,
2
],
"prefer-dry-conditionals": [
true,
2
]
}
}