aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/tslint.json
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-04-08 20:58:07 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-04-08 21:03:47 +0200
commit44124980c55d5a5ec7dfb8e71bf14d10f0fe975d (patch)
tree795191ff37d862a4bcf9cbc57cdb60b909b038d1 /client/tslint.json
parent0dde91ff15ec3cb73d39da50b388e5e525160cb4 (diff)
downloadPeerTube-44124980c55d5a5ec7dfb8e71bf14d10f0fe975d.tar.gz
PeerTube-44124980c55d5a5ec7dfb8e71bf14d10f0fe975d.tar.zst
PeerTube-44124980c55d5a5ec7dfb8e71bf14d10f0fe975d.zip
Add typescript (and angular2) linter
Diffstat (limited to 'client/tslint.json')
-rw-r--r--client/tslint.json46
1 files changed, 46 insertions, 0 deletions
diff --git a/client/tslint.json b/client/tslint.json
new file mode 100644
index 000000000..6a40b5b11
--- /dev/null
+++ b/client/tslint.json
@@ -0,0 +1,46 @@
1{
2 "rulesDirectory": ["./node_modules/codelyzer/dist/src"],
3 "rules": {
4 "class-name": true,
5 "curly": false,
6 "eofline": true,
7 "indent": ["spaces"],
8 "max-line-length": [true, 140],
9 "member-ordering": [true,
10 "public-before-private",
11 "static-before-instance",
12 "variables-before-functions"
13 ],
14 "no-arg": true,
15 "no-construct": true,
16 "no-duplicate-key": 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-unused-variable": true,
23 "no-unreachable": true,
24 "no-use-before-declare": true,
25 "one-line": [true,
26 "check-open-brace",
27 "check-catch",
28 "check-else",
29 "check-whitespace"
30 ],
31 "quotemark": [true, "single"],
32 "semicolon": true,
33 "trailing-comma": true,
34 "triple-equals": true,
35 "variable-name": false,
36
37 "component-selector-name": [true, "kebab-case"],
38 "component-selector-type": [true, "element"],
39 "host-parameter-decorator": true,
40 "input-parameter-decorator": true,
41 "output-parameter-decorator": true,
42 "attribute-parameter-decorator": true,
43 "input-property-directive": true,
44 "output-property-directive": true
45 }
46}