1 | {
|
---|
2 | "extends": "tslint:recommended",
|
---|
3 | "rulesDirectory": ["codelyzer"],
|
---|
4 | "rules": {
|
---|
5 | "align": {
|
---|
6 | "options": ["parameters", "statements"]
|
---|
7 | },
|
---|
8 | "array-type": false,
|
---|
9 | "arrow-return-shorthand": true,
|
---|
10 | "curly": true,
|
---|
11 | "deprecation": {
|
---|
12 | "severity": "warning"
|
---|
13 | },
|
---|
14 | "eofline": true,
|
---|
15 | "import-blacklist": [true, "rxjs/Rx"],
|
---|
16 | "import-spacing": true,
|
---|
17 | "indent": {
|
---|
18 | "options": ["spaces"]
|
---|
19 | },
|
---|
20 | "max-classes-per-file": false,
|
---|
21 | "max-line-length": [true, 140],
|
---|
22 | "member-ordering": [
|
---|
23 | true,
|
---|
24 | {
|
---|
25 | "order": ["static-field", "instance-field", "static-method", "instance-method"]
|
---|
26 | }
|
---|
27 | ],
|
---|
28 | "no-console": [true, "debug", "info", "time", "timeEnd", "trace"],
|
---|
29 | "no-empty": false,
|
---|
30 | "no-inferrable-types": [true, "ignore-params"],
|
---|
31 | "no-non-null-assertion": true,
|
---|
32 | "no-redundant-jsdoc": true,
|
---|
33 | "no-switch-case-fall-through": true,
|
---|
34 | "no-var-requires": false,
|
---|
35 | "object-literal-key-quotes": [true, "as-needed"],
|
---|
36 | "quotemark": [true, "single"],
|
---|
37 | "semicolon": {
|
---|
38 | "options": ["always"]
|
---|
39 | },
|
---|
40 | "space-before-function-paren": {
|
---|
41 | "options": {
|
---|
42 | "anonymous": "never",
|
---|
43 | "asyncArrow": "always",
|
---|
44 | "constructor": "never",
|
---|
45 | "method": "never",
|
---|
46 | "named": "never"
|
---|
47 | }
|
---|
48 | },
|
---|
49 | "typedef": [true, "call-signature"],
|
---|
50 | "typedef-whitespace": {
|
---|
51 | "options": [
|
---|
52 | {
|
---|
53 | "call-signature": "nospace",
|
---|
54 | "index-signature": "nospace",
|
---|
55 | "parameter": "nospace",
|
---|
56 | "property-declaration": "nospace",
|
---|
57 | "variable-declaration": "nospace"
|
---|
58 | },
|
---|
59 | {
|
---|
60 | "call-signature": "onespace",
|
---|
61 | "index-signature": "onespace",
|
---|
62 | "parameter": "onespace",
|
---|
63 | "property-declaration": "onespace",
|
---|
64 | "variable-declaration": "onespace"
|
---|
65 | }
|
---|
66 | ]
|
---|
67 | },
|
---|
68 | "variable-name": {
|
---|
69 | "options": ["ban-keywords", "check-format", "allow-pascal-case"]
|
---|
70 | },
|
---|
71 | "whitespace": {
|
---|
72 | "options": ["check-branch", "check-decl", "check-operator", "check-separator", "check-type", "check-typecast"]
|
---|
73 | },
|
---|
74 | "component-class-suffix": true,
|
---|
75 | "contextual-lifecycle": true,
|
---|
76 | "directive-class-suffix": true,
|
---|
77 | "no-conflicting-lifecycle": true,
|
---|
78 | "no-host-metadata-property": true,
|
---|
79 | "no-input-rename": true,
|
---|
80 | "no-inputs-metadata-property": true,
|
---|
81 | "no-output-native": true,
|
---|
82 | "no-output-on-prefix": true,
|
---|
83 | "no-output-rename": true,
|
---|
84 | "no-outputs-metadata-property": true,
|
---|
85 | "template-banana-in-box": true,
|
---|
86 | "use-lifecycle-interface": true,
|
---|
87 | "use-pipe-transform-interface": true,
|
---|
88 | "directive-selector": [true, "attribute", "app", "camelCase"],
|
---|
89 | "component-selector": [true, "element", "app", "kebab-case"]
|
---|
90 | }
|
---|
91 | }
|
---|