|
@@ -1,6 +1,7 @@
|
|
|
{
|
|
|
"extends": [
|
|
|
- "tslint-eslint-rules"
|
|
|
+ "tslint-eslint-rules",
|
|
|
+ "tslint-microsoft-contrib"
|
|
|
],
|
|
|
"rules": {
|
|
|
"adjacent-overload-signatures": true,
|
|
@@ -29,14 +30,24 @@
|
|
|
"check-space",
|
|
|
"check-lowercase"
|
|
|
],
|
|
|
+ "completed-docs": false,
|
|
|
"curly": true,
|
|
|
"cyclomatic-complexity": [true, 10],
|
|
|
"eofline": true,
|
|
|
+ "export-name": false,
|
|
|
"forin": true,
|
|
|
+ "function-name": [true, {
|
|
|
+ "method-regex": "^[a-z][\\w\\d]+$",
|
|
|
+ "private-method-regex": "^[a-z][\\w\\d]+$",
|
|
|
+ "protected-method-regex": "^[a-z][\\w\\d]+$",
|
|
|
+ "static-method-regex": "^[a-z][\\w\\d]+$",
|
|
|
+ "function-regex": "^[a-zA-Z][\\w\\d]+$"
|
|
|
+ }],
|
|
|
"indent": [
|
|
|
true,
|
|
|
"spaces"
|
|
|
],
|
|
|
+ "insecure-random": false,
|
|
|
"interface-name": [
|
|
|
true,
|
|
|
"always-prefix"
|
|
@@ -46,16 +57,21 @@
|
|
|
"jsdoc-format": true,
|
|
|
"label-position": true,
|
|
|
"max-classes-per-file": [true, 1],
|
|
|
+ "max-func-body-length": [true, 200],
|
|
|
+ "max-line-length": [true, 150],
|
|
|
"member-access": [true],
|
|
|
"member-ordering": [
|
|
|
true,
|
|
|
{ "order": "fields-first" }
|
|
|
],
|
|
|
+ "missing-jsdoc": false,
|
|
|
+ "newline-before-return": true,
|
|
|
"new-parens": true,
|
|
|
"newline-per-chained-call": false,
|
|
|
"no-angle-bracket-type-assertion": false,
|
|
|
"no-any": false,
|
|
|
"no-arg": true,
|
|
|
+ "no-banned-terms": false,
|
|
|
"no-bitwise": true,
|
|
|
"no-conditional-assignment": true,
|
|
|
"no-consecutive-blank-lines": true,
|
|
@@ -80,6 +96,7 @@
|
|
|
"no-empty": false,
|
|
|
"no-empty-character-class": true,
|
|
|
"no-empty-interface": true,
|
|
|
+ "no-empty-line-after-opening-brace": true,
|
|
|
"no-eval": false,
|
|
|
"no-ex-assign": true,
|
|
|
"no-extra-boolean-cast": true,
|
|
@@ -87,11 +104,13 @@
|
|
|
"no-inferrable-types": false,
|
|
|
"no-inner-declarations": [true, "both"],
|
|
|
"no-implicit-dependencies": false,
|
|
|
+ "no-increment-decrement": false,
|
|
|
"no-internal-module": true,
|
|
|
"no-invalid-regexp": true,
|
|
|
"no-invalid-this": true,
|
|
|
"no-misused-new": true,
|
|
|
"no-multi-spaces": [true],
|
|
|
+ "no-multiline-string": false,
|
|
|
"no-namespace": true,
|
|
|
"no-null-keyword": false,
|
|
|
"no-parameter-properties": true,
|
|
@@ -100,20 +119,27 @@
|
|
|
"no-reference": true,
|
|
|
"no-reference-import": true,
|
|
|
"no-regex-spaces": true,
|
|
|
+ "no-relative-imports": false,
|
|
|
"no-require-imports": true,
|
|
|
+ "no-reserved-keywords": false,
|
|
|
"no-shadowed-variable": true,
|
|
|
"no-string-literal": true,
|
|
|
"no-string-throw": true,
|
|
|
"no-submodule-imports": true,
|
|
|
"no-switch-case-fall-through": false,
|
|
|
"no-trailing-whitespace": [true, "ignore-blank-lines"],
|
|
|
+ "no-typeof-undefined": true,
|
|
|
"no-unnecessary-callback-wrapper": true,
|
|
|
"no-unnecessary-class": [true, "allow-static-only"],
|
|
|
"no-unnecessary-initializer": true,
|
|
|
+ "no-unnecessary-field-initialization": true,
|
|
|
+ "no-unnecessary-local-variable": true,
|
|
|
"no-unexpected-multiline": true,
|
|
|
+ "no-unsafe-any": false,
|
|
|
"no-unsafe-finally": true,
|
|
|
"no-unused-expression": true,
|
|
|
"no-use-before-declare": true,
|
|
|
+ "no-useless-files": true,
|
|
|
"no-var-keyword": true,
|
|
|
"no-var-requires": true,
|
|
|
"max-file-line-count": [true, 500],
|
|
@@ -138,6 +164,7 @@
|
|
|
}
|
|
|
],
|
|
|
"prefer-const": true,
|
|
|
+ "prefer-object-spread": false,
|
|
|
"prefer-method-signature": true,
|
|
|
"prefer-readonly": true,
|
|
|
"prefer-template": true,
|
|
@@ -146,6 +173,7 @@
|
|
|
"semicolon": [true, "always"],
|
|
|
"space-before-function-paren": true,
|
|
|
"space-in-parens": [true, "never"],
|
|
|
+ "strict-boolean-expressions": false,
|
|
|
"switch-default": false,
|
|
|
"ter-arrow-parens": true,
|
|
|
"ter-func-call-spacing": [true, "never"],
|