UNPKG

mage-validator

Version:

Validation utility for MAGE user commands & topics (TypeScript)

98 lines (97 loc) 2.94 kB
{ "extends": "tslint:recommended", "rules": { "max-classes-per-file": false, "ordered-imports": false, "object-literal-sort-keys": false, "adjacent-overload-signatures": true, "member-ordering": [true, { "order": [ "public-static-field", "private-static-field", "public-instance-field", "protected-instance-field", "private-instance-field", "constructor", "public-instance-method", "protected-instance-method", "private-instance-method" ] }], "no-any": false, "no-import-side-effect": false, "no-var-requires": false, "prefer-for-of": true, "promise-function-async": true, "unified-signatures": true, "await-promise": true, "curly": true, "forin": true, "no-arg": true, "no-conditional-assignment": true, "no-construct": true, "no-debugger": true, "no-duplicate-super": true, "no-empty": true, "no-eval": true, "no-floating-promises": true, "no-invalid-template-strings": true, "no-shadowed-variable": false, "no-string-throw": true, "no-switch-case-fall-through": true, "no-use-before-declare": true, "no-var-keyword": true, "radix": true, "restrict-plus-operands": true, "strict-boolean-expressions": false, "strict-type-predicates": true, "typeof-compare": true, "use-isnan": true, "cyclomatic-complexity": [true, 20], "deprecation": true, "eofline": true, "indent": [true, "spaces", 2], "linebreak-style": [true, "LF"], "prefer-const": true, "arrow-parens": true, "arrow-return-shorthand": true, "class-name": true, "completed-docs": [true, { "classes": true, "enums": true, "interfaces": true, "types": true }], "interface-name": [true, "always-prefix"], "newline-before-return": false, "new-parens": true, "no-irregular-whitespace": true, "no-trailing-whitespace": true, "no-unnecessary-callback-wrapper": true, "number-literal-format": true, "object-literal-key-quotes": [true, "as-needed"], "object-literal-shorthand": true, "only-arrow-functions": false, "one-variable-per-declaration": true, "prefer-function-over-method": true, "semicolon": [true, "never"], "space-before-function-paren": [true, {"anonymous": "always", "named": "never", "asyncArrow": "always"}], "trailing-comma": false, "no-angle-bracket-type-assertion": false, "variable-name": [true, "ban-keywords", "check-format", "allow-leading-underscore", "allow-pascal-case"], "max-line-length": [true, 150], "max-file-line-count": [true, 1000], "no-consecutive-blank-lines": [true, 2], "triple-equals": true, "quotemark": [true, "single", "avoid-escape"], "no-console": [ true, "debug", "info", "log", "time", "timeEnd", "trace" ] } }