tslint-clean-code
Version:
TSLint rules for enforcing Clean Code
212 lines • 4.9 kB
JSON
{
"rules": {
"no-eval": true,
"await-promise": true,
"forin": true,
"id-length": true,
"label-position": true,
"match-default-export-name": true,
"max-func-args": [
true,
3
],
"min-class-cohesion": [
true,
0.5
],
"newspaper-order": true,
"no-any": true,
"no-arg": true,
"no-bitwise": true,
"no-conditional-assignment": true,
"no-console": [
true,
"debug",
"info",
"log",
"time",
"timeEnd",
"trace"
],
"no-debugger": true,
"no-duplicate-super": true,
"no-duplicate-variable": true,
"no-empty": true,
"no-flag-args": true,
"no-floating-promises": true,
"no-for-each-push": true,
"no-for-in-array": true,
"no-import-side-effect": true,
"no-invalid-template-strings": true,
"no-invalid-this": true,
"no-map-without-usage": true,
"no-misused-new": true,
"no-non-null-assertion": true,
"no-reference-import": true,
"no-sparse-arrays": true,
"no-string-literal": true,
"no-string-throw": true,
"no-unnecessary-callback-wrapper": true,
"no-unnecessary-initializer": true,
"no-unsafe-any": true,
"no-unsafe-finally": true,
"no-unused-expression": true,
"no-use-before-declare": true,
"promise-function-async": true,
"radix": true,
"restrict-plus-operands": true,
"strict-boolean-expressions": true,
"switch-default": true,
"triple-equals": [
true,
"allow-null-check"
],
"try-catch-first": true,
"use-isnan": true,
"adjacent-overload-signatures": true,
"array-type": [
true,
"array"
],
"arrow-parens": false,
"callable-types": true,
"class-name": true,
"comment-format": true,
"completed-docs": [
true,
"classes"
],
"interface-name": true,
"jsdoc-format": true,
"max-classes-per-file": [
true,
3
],
"max-file-line-count": true,
"max-line-length": [
true,
140
],
"member-access": true,
"member-ordering": [
true,
{
"order": "fields-first"
}
],
"new-parens": true,
"no-commented-out-code": true,
"no-complex-conditionals": true,
"no-construct": true,
"no-default-export": true,
"no-empty-interface": true,
"no-feature-envy": [
true,
1,
[
"_"
]
],
"no-inferrable-types": false,
"no-null-keyword": false,
"no-parameter-properties": true,
"no-require-imports": true,
"no-shadowed-variable": true,
"no-unnecessary-qualifier": true,
"no-var-keyword": true,
"no-var-requires": true,
"no-void-expression": true,
"object-literal-sort-keys": false,
"one-variable-per-declaration": true,
"only-arrow-functions": false,
"ordered-imports": true,
"prefer-const": true,
"prefer-dry-conditionals": true,
"prefer-for-of": true,
"prefer-method-signature": true,
"prefer-template": true,
"return-undefined": false,
"typedef": [
true,
"call-signature",
"arrow-call-signature",
"parameter",
"arrow-parameter",
"property-declaration",
"variable-declaration",
"member-variable-declaration"
],
"unified-signatures": true,
"variable-name": true,
"align": [
true,
"parameters",
"arguments",
"statements"
],
"curly": true,
"eofline": true,
"import-spacing": true,
"indent": [
true,
"spaces"
],
"linebreak-style": true,
"newline-before-return": true,
"no-consecutive-blank-lines": true,
"no-trailing-whitespace": true,
"object-literal-key-quotes": [
true,
"as-needed"
],
"one-line": [
true,
"check-open-brace",
"check-catch",
"check-else",
"check-whitespace"
],
"quotemark": [
true,
"single"
],
"semicolon": [
true,
"always"
],
"trailing-comma": [
true,
{
"singleline": "never",
"multiline": "never"
}
],
"typedef-whitespace": false,
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-separator",
"check-type"
],
"ban": false,
"ban-types": true,
"cyclomatic-complexity": true,
"file-header": false,
"import-blacklist": false,
"interface-over-type-literal": false,
"no-angle-bracket-type-assertion": false,
"no-inferred-empty-object-type": false,
"no-internal-module": false,
"no-magic-numbers": false,
"no-mergeable-namespace": false,
"no-namespace": false,
"no-reference": true,
"object-literal-shorthand": false,
"space-before-function-paren": false,
"no-switch-case-fall-through": false,
"typeof-compare": false
},
"rulesDirectory": "./"
}