tslint.json
{
"extends": "tslint:latest",
"rulesDirectory": [
"node_modules/codelyzer",
"node_modules/tslint-microsoft-contrib",
"node_modules/tslint-eslint-rules/dist/rules"
],
"rules": {
"no-constant-condition": true,
"no-irregular-whitespace": true,
"ter-arrow-body-style": [
true,
"as-needed",
{
"requireReturnForObjectLiteral": true
}
],
"ter-arrow-parens": [
true,
"as-needed"
],
"ter-arrow-spacing": [
true
],
"ter-prefer-arrow-callback": [
true,
{
"allowNamedFunctions": false,
"allowUnboundThis": false
}
],
"ter-indent": [
true,
2,
{
"SwitchCase": 1,
"outerIIFEBody": 0,
"MemberExpression": 1,
"FunctionDeclaration": {
"body": 1,
"parameters": "first"
},
"FunctionExpression": {
"body": 1,
"parameters": "first"
},
"CallExpression": {
"arguments": 1
}
}
],
"ter-max-len": [
true,
140,
{
"ignoreUrls": true
}
],
"no-multi-spaces": [
true,
{
"exceptions": {
"PropertyAssignment": false
}
}
],
"array-type": [
true,
"array"
],
"callable-types": true,
"cyclomatic-complexity": [
true,
4
],
"interface-name": [
false,
"always-prefix"
],
"interface-over-type-literal": true,
"jsdoc-format": false,
"max-classes-per-file": [
true,
1
],
"max-line-length": [
true,
140
],
"member-access": false,
"member-ordering": [
true,
{
"order": [
"public-static-field",
"protected-static-field",
"private-static-field",
"public-static-method",
"protected-static-method",
"private-static-method",
"public-instance-field",
"protected-instance-field",
"private-instance-field",
"constructor"
]
}
],
"new-parens": true,
"no-any": false,
"no-consecutive-blank-lines": true,
"no-empty-interface": true,
"no-namespace": true,
"no-string-literal": false,
"no-string-throw": true,
"no-switch-case-fall-through": true,
"no-unused-expression": true,
"no-unused-new": true,
"no-var-requires": true,
"object-literal-key-quotes": [
true,
"as-needed"
],
"object-literal-shorthand": true,
"object-literal-sort-keys": false,
"ordered-imports": [
true,
{
"import-sources-order": "case-insensitive",
"named-imports-order": "case-insensitive"
}
],
"prefer-const": true,
"quotemark": [
true,
"single",
"avoid-escape"
],
"semicolon": [true, "always"],
"space-before-function-paren": [
true,
{
"anonymous": "never",
"named": "never",
"asyncArrow": "never",
"method": "never",
"constructor": "never"
}
],
"trailing-comma": [
true,
{
"multiline": "never",
"singleline": "never"
}
],
"typeof-compare": true,
"variable-name": [
true,
"ban-keywords",
"check-format",
"allow-leading-underscore"
],
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-module",
"check-separator",
"check-type",
"check-typecast"
],
"directive-selector": [
true,
"attribute",
"my",
"camelCase"
],
"component-selector": [
true,
"element",
"ru",
"kebab-case"
],
"use-input-property-decorator": true,
"use-output-property-decorator": true,
"use-host-property-decorator": true,
"no-attribute-parameter-decorator": true,
"no-input-rename": true,
"no-output-rename": true,
"no-forward-ref": true,
"use-life-cycle-interface": true,
"use-pipe-transform-interface": true,
"pipe-naming": [
true,
"camelCase",
"my"
],
"component-class-suffix": true,
"directive-class-suffix": true,
"import-destructuring-spacing": true,
"templates-use-public": true,
"no-access-missing-member": true,
"invoke-injectable": true,
"insecure-random": true,
"no-banned-terms": true,
"no-cookies": true,
"no-delete-expression": true,
"no-disable-auto-sanitization": true,
"no-document-domain": true,
"no-document-write": true,
"no-eval": true,
"no-exec-script": true,
"no-function-constructor-with-string-args": true,
"no-inner-html": true,
"no-octal-literal": true,
"no-string-based-set-immediate": true,
"no-string-based-set-interval": true,
"no-string-based-set-timeout": true,
"non-literal-require": true,
"possible-timing-attack": false,
"forin": true,
"jquery-deferred-must-complete": true,
"label-position": true,
"no-arg": true,
"no-control-regex": true,
"no-duplicate-case": true,
"no-duplicate-variable": true,
"no-empty": false,
"no-invalid-regexp": true,
"no-invalid-this": true,
"no-jquery-raw-elements": true,
"no-regex-spaces": true,
"no-sparse-arrays": true,
"no-unnecessary-bind": true,
"no-unnecessary-override": true,
"no-unsafe-finally": true,
"no-with-statement": true,
"promise-must-complete": true,
"radix": true,
"switch-default": true,
"triple-equals": [
true,
"allow-null-check"
],
"unified-signatures": true,
"use-isnan": true,
"use-named-parameter": true,
"valid-typeof": true,
"adjacent-overload-signatures": true,
"arrow-parens": [
true,
"ban-single-arg-parens"
],
"class-name": true,
"comment-format": true,
"import-name": true,
"import-spacing": true,
"max-file-line-count": true,
"max-func-body-length": [
true,
100,
{
"ignore-parameters-to-function-regex": "describe"
}
],
"mocha-unneeded-done": true,
"no-construct": true,
"no-default-export": true,
"no-for-in": true,
"no-function-expression": true,
"no-require-imports": true,
"no-shadowed-variable": true,
"no-typeof-undefined": true,
"no-unnecessary-field-initialization": true,
"no-unnecessary-local-variable": true,
"no-unsupported-browser-code": true,
"no-var-keyword": true,
"no-var-self": true,
"one-variable-per-declaration": true,
"prefer-array-literal": true,
"prefer-for-of": true,
"underscore-consistent-invocation": true,
"curly": true,
"eofline": true,
"indent": [
true,
"spaces"
],
"linebreak-style": true,
"no-empty-line-after-opening-brace": false,
"no-single-line-block-comment": true,
"no-unnecessary-semicolons": true,
"one-line": [
true,
"check-open-brace",
"check-catch",
"check-else",
"check-whitespace"
],
"no-mergeable-namespace": true,
"no-reference": true,
"no-unexternalized-strings": true,
"no-angle-bracket-type-assertion": false,
"prefer-type-cast": true,
"no-non-null-assertion": true
}
}