Use typescript standard and lint all files
[oweals/peertube.git] / client / tslint.json
1 {
2   "extends": "tslint-config-standard",
3   "rulesDirectory": ["./node_modules/codelyzer"],
4   "rules": {
5     "no-inferrable-types": true,
6     "eofline": true,
7     "indent": ["spaces"],
8     "max-line-length": [true, 140],
9     "no-floating-promises": false,
10     "no-unused-variable": false, // Bug, wait TypeScript 2.4
11     "member-ordering": [true,
12       "public-before-private",
13       "static-before-instance",
14       "variables-before-functions"
15     ],
16
17     "directive-selector": [true, "attribute", "my", "camelCase"],
18     "component-selector": [true, "element", "my", "kebab-case"],
19     "use-input-property-decorator": true,
20     "use-output-property-decorator": true,
21     "use-host-property-decorator": true,
22     "no-attribute-parameter-decorator": true,
23     "no-input-rename": true,
24     "no-output-rename": true,
25     "no-forward-ref": true,
26     "use-life-cycle-interface": true,
27     "use-pipe-transform-interface": true,
28     "pipe-naming": [true, "camelCase", "my"],
29     "component-class-suffix": true,
30     "directive-class-suffix": true,
31     "templates-use-public": true,
32     "no-access-missing-member": true,
33     "invoke-injectable": true
34   }
35 }