X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Ftslint.json;h=1b28e679b8d66a388509a893cde3bd3dbd8b793e;hb=f409f0c3b91d85c66b4841d72ea65b5fbe1483d8;hp=50b90be65c5a8b9138780a3197b76a1b6a2cbe31;hpb=383bfc8356d444cbed1dab7e5c1b3bb16becfdfd;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/tslint.json b/client/tslint.json index 50b90be65..1b28e679b 100644 --- a/client/tslint.json +++ b/client/tslint.json @@ -1,70 +1,37 @@ { - "rulesDirectory": ["./node_modules/codelyzer"], + "extends": [ "tslint-angular", "tslint-config-standard" ], "rules": { - "class-name": true, "no-inferrable-types": true, - "curly": false, "eofline": true, - "indent": ["spaces"], "max-line-length": [true, 140], - "member-ordering": [true, - "public-before-private", - "static-before-instance", - "variables-before-functions" + "no-floating-promises": false, + "no-unused-variable": false, // Memory issues + "await-promise": [true, "PromiseLike"], + "member-ordering": [true, { + "order": [ + "public-static-field", + "private-static-field", + "public-instance-field", + "private-instance-field", + "public-constructor", + "private-constructor", + "public-instance-method", + "protected-instance-method", + "private-instance-method" + ]} ], - "no-arg": true, - "no-construct": true, - "no-duplicate-variable": true, - "no-empty": true, - "no-eval": true, - "no-trailing-whitespace": true, - "no-unused-expression": true, - "no-use-before-declare": true, - "one-line": [true, - "check-open-brace", - "check-catch", - "check-else", - "check-whitespace" + "variable-name": [ + true, + "ban-keywords", + "check-format", + "allow-leading-underscore", + "allow-pascal-case", + "allow-trailing-underscore" ], - "quotemark": [true, "single"], - "semicolon": true, - "trailing-comma": true, - "triple-equals": true, - "variable-name": false, - "directive-selector": [true, "attribute", "my", "camelCase"], - "component-selector": [true, "element", "my", "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, - "templates-use-public": true, - "no-access-missing-member": true, - "invoke-injectable": true, - - "typedef-whitespace": [ true, - { - "call-signature": "nospace", - "index-signature": "nospace", - "parameter": "nospace", - "property-declaration": "nospace", - "variable-declaration": "nospace" - } - ], - "whitespace": [ true, - "check-branch", - "check-decl", - "check-operator", - "check-separator", - "check-type" - ] + "no-shadowed-variable": false, + "no-bitwise": false, + "max-classes-per-file": false, + "interface-over-type-literal": false } }