diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-06-16 14:32:15 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-06-16 14:32:15 +0200 |
commit | df98563e2104b82b119c00a3cd83cd0dc1242d25 (patch) | |
tree | a9720bf01bac9ad5646bd3d3c9bc7653617afdad /client/tslint.json | |
parent | 46757b477c1adb5f98060d15998a3852e18902a6 (diff) | |
download | PeerTube-df98563e2104b82b119c00a3cd83cd0dc1242d25.tar.gz PeerTube-df98563e2104b82b119c00a3cd83cd0dc1242d25.tar.zst PeerTube-df98563e2104b82b119c00a3cd83cd0dc1242d25.zip |
Use typescript standard and lint all files
Diffstat (limited to 'client/tslint.json')
-rw-r--r-- | client/tslint.json | 43 |
1 files changed, 4 insertions, 39 deletions
diff --git a/client/tslint.json b/client/tslint.json index 50b90be65..cfad2a5d9 100644 --- a/client/tslint.json +++ b/client/tslint.json | |||
@@ -1,36 +1,18 @@ | |||
1 | { | 1 | { |
2 | "extends": "tslint-config-standard", | ||
2 | "rulesDirectory": ["./node_modules/codelyzer"], | 3 | "rulesDirectory": ["./node_modules/codelyzer"], |
3 | "rules": { | 4 | "rules": { |
4 | "class-name": true, | ||
5 | "no-inferrable-types": true, | 5 | "no-inferrable-types": true, |
6 | "curly": false, | ||
7 | "eofline": true, | 6 | "eofline": true, |
8 | "indent": ["spaces"], | 7 | "indent": ["spaces"], |
9 | "max-line-length": [true, 140], | 8 | "max-line-length": [true, 140], |
9 | "no-floating-promises": false, | ||
10 | "no-unused-variable": false, // Bug, wait TypeScript 2.4 | ||
10 | "member-ordering": [true, | 11 | "member-ordering": [true, |
11 | "public-before-private", | 12 | "public-before-private", |
12 | "static-before-instance", | 13 | "static-before-instance", |
13 | "variables-before-functions" | 14 | "variables-before-functions" |
14 | ], | 15 | ], |
15 | "no-arg": true, | ||
16 | "no-construct": true, | ||
17 | "no-duplicate-variable": true, | ||
18 | "no-empty": true, | ||
19 | "no-eval": true, | ||
20 | "no-trailing-whitespace": true, | ||
21 | "no-unused-expression": true, | ||
22 | "no-use-before-declare": true, | ||
23 | "one-line": [true, | ||
24 | "check-open-brace", | ||
25 | "check-catch", | ||
26 | "check-else", | ||
27 | "check-whitespace" | ||
28 | ], | ||
29 | "quotemark": [true, "single"], | ||
30 | "semicolon": true, | ||
31 | "trailing-comma": true, | ||
32 | "triple-equals": true, | ||
33 | "variable-name": false, | ||
34 | 16 | ||
35 | "directive-selector": [true, "attribute", "my", "camelCase"], | 17 | "directive-selector": [true, "attribute", "my", "camelCase"], |
36 | "component-selector": [true, "element", "my", "kebab-case"], | 18 | "component-selector": [true, "element", "my", "kebab-case"], |
@@ -48,23 +30,6 @@ | |||
48 | "directive-class-suffix": true, | 30 | "directive-class-suffix": true, |
49 | "templates-use-public": true, | 31 | "templates-use-public": true, |
50 | "no-access-missing-member": true, | 32 | "no-access-missing-member": true, |
51 | "invoke-injectable": true, | 33 | "invoke-injectable": true |
52 | |||
53 | "typedef-whitespace": [ true, | ||
54 | { | ||
55 | "call-signature": "nospace", | ||
56 | "index-signature": "nospace", | ||
57 | "parameter": "nospace", | ||
58 | "property-declaration": "nospace", | ||
59 | "variable-declaration": "nospace" | ||
60 | } | ||
61 | ], | ||
62 | "whitespace": [ true, | ||
63 | "check-branch", | ||
64 | "check-decl", | ||
65 | "check-operator", | ||
66 | "check-separator", | ||
67 | "check-type" | ||
68 | ] | ||
69 | } | 34 | } |
70 | } | 35 | } |