Skip to content
Snippets Groups Projects
Commit 0122ad43 authored by Florent Poittevin's avatar Florent Poittevin
Browse files

New TSLint

parent b181a939
No related branches found
No related tags found
1 merge request!24Fpo/refacto generic crud
{
"extends": "tslint:recommended",
"rulesDirectory": [
"codelyzer"
],
"rules": {
"array-type": false,
"arrow-parens": false,
"deprecation": {
"severity": "warn"
},
"align": [
true,
"parameters",
"statements"
],
"array-type": [
true,
"array"
],
"arrow-return-shorthand": [
true,
"multiline"
],
"ban": [
true,
[
"fdescribe"
],
[
"fit"
],
[
"describe",
"only"
],
[
"it",
"only"
],
[
"Object",
"assign"
]
],
"callable-types": true,
"class-name": true,
"comment-format": [
true
],
"component-class-suffix": true,
"component-selector": [
true,
"element",
"",
"kebab-case"
],
"curly": true,
"cyclomatic-complexity": [
true,
200
],
"deprecation": false,
"directive-class-suffix": true,
"directive-selector": [
true,
"attribute",
"",
"camelCase"
],
"eofline": true,
"forin": true,
"import-blacklist": [
true,
"rxjs/Rx"
],
"interface-name": false,
"max-classes-per-file": false,
"max-line-length": [
"import-spacing": false,
"indent": [
true,
140
"spaces"
],
"interface-over-type-literal": true,
"label-position": true,
"max-line-length": [
false
],
"member-access": false,
"member-ordering": [
true,
false,
{
"order": [
"static-field",
......@@ -31,46 +87,114 @@
]
}
],
"no-consecutive-blank-lines": false,
"no-arg": true,
"no-bitwise": true,
"no-console": [
true,
"debug",
"info",
"log",
"time",
"timeEnd",
"trace"
],
"no-empty": false,
"no-construct": true,
"no-debugger": true,
"no-duplicate-super": true,
"no-duplicate-variable": true,
"no-empty": true,
"no-empty-interface": false,
"no-eval": true,
"no-inferrable-types": [
true,
false,
"ignore-params"
],
"no-input-rename": false,
"no-internal-module": true,
"no-mergeable-namespace": true,
"no-misused-new": true,
"no-non-null-assertion": true,
"no-namespace": false,
"no-redundant-jsdoc": true,
"no-output-on-prefix": false,
"no-output-rename": false,
"no-redundant-jsdoc": false,
"no-shadowed-variable": true,
"no-string-literal": false,
"no-string-throw": true,
"no-switch-case-fall-through": true,
"no-use-before-declare": true,
"no-var-requires": false,
"object-literal-key-quotes": [
"no-trailing-whitespace": true,
"no-unnecessary-initializer": false,
"no-unused-expression": true,
"no-use-before-declare": false,
"no-var-keyword": true,
"object-literal-sort-keys": false,
"one-line": [
true,
"as-needed"
"check-open-brace",
"check-catch",
//"check-else",
"check-whitespace"
],
"object-literal-sort-keys": false,
"ordered-imports": false,
"prefer-const": true,
"quotemark": [
true,
"double"
],
"trailing-comma": false,
"no-output-on-prefix": true,
"use-input-property-decorator": true,
"use-output-property-decorator": true,
"radix": true,
"semicolon": true,
"trailing-comma": [
true
],
"triple-equals": [
true,
"allow-null-check"
],
"typedef": [
true,
"call-signature",
"parameter",
"property-declaration",
"member-variable-declaration"
],
"typedef-whitespace": [
true,
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
},
{
"call-signature": "onespace",
"index-signature": "onespace",
"parameter": "onespace",
"property-declaration": "onespace",
"variable-declaration": "onespace"
}
],
"unified-signatures": true,
"use-host-property-decorator": true,
"no-input-rename": true,
"no-output-rename": true,
"use-input-property-decorator": true,
"use-isnan": true,
"use-life-cycle-interface": true,
"use-output-property-decorator": true,
"use-pipe-transform-interface": true,
"component-class-suffix": false,
"directive-class-suffix": true
}
"variable-name": [
true,
"ban-keywords",
"check-format",
"allow-leading-underscore"
],
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-separator",
"check-type"
]
},
"rulesDirectory": [
"node_modules/codelyzer"
]
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment