|
15 | 15 | "defocus": true,
|
16 | 16 | "import-groups": true,
|
17 | 17 | "no-global-tslint-disable": true,
|
| 18 | + "single-eof-line": true, |
18 | 19 | // ==================================================================================================
|
19 | 20 | // tslint-sonarts rules. See https://github.com/SonarSource/SonarTS
|
20 | 21 | // These rules are part of the bug detection section of tslint-sonarts
|
|
51 | 52 | "no-floating-promises": true,
|
52 | 53 | "no-implicit-dependencies": true,
|
53 | 54 | "no-import-side-effect": [true, {"ignore-module": "^(?!rxjs\/)"}],
|
| 55 | + "align": [ |
| 56 | + true, |
| 57 | + "elements", |
| 58 | + "members", |
| 59 | + "parameters", |
| 60 | + "statements" |
| 61 | + ], |
| 62 | + "max-line-length": [true, 140], |
54 | 63 | "no-inferrable-types": true,
|
55 | 64 | "class-name": true,
|
56 | 65 | "comment-format": [
|
57 | 66 | true,
|
58 | 67 | "check-space"
|
59 | 68 | ],
|
| 69 | + "indent": [ |
| 70 | + true, |
| 71 | + "spaces" |
| 72 | + ], |
| 73 | + "eofline": true, |
| 74 | + "import-spacing": true, |
60 | 75 | "match-default-export-name": true,
|
61 | 76 | "newline-before-return": true,
|
| 77 | + "no-consecutive-blank-lines": [true, 2], |
62 | 78 | "no-duplicate-variable": true,
|
63 | 79 | "no-eval": true,
|
64 | 80 | "no-any": true,
|
65 | 81 | "no-arg": true,
|
66 | 82 | "no-debugger": true,
|
67 | 83 | "no-console": true,
|
68 | 84 | "no-internal-module": true,
|
| 85 | + "no-trailing-whitespace": true, |
69 | 86 | "no-unused-expression": true,
|
70 | 87 | "no-var-keyword": true,
|
| 88 | + "one-line": [ |
| 89 | + true, |
| 90 | + "check-catch", |
| 91 | + "check-else", |
| 92 | + "check-finally", |
| 93 | + "check-open-brace", |
| 94 | + "check-whitespace" |
| 95 | + ], |
71 | 96 | "ordered-imports": [
|
72 | 97 | true,
|
73 | 98 | {
|
|
76 | 101 | }
|
77 | 102 | ],
|
78 | 103 | "prefer-const": true,
|
| 104 | + "quotemark": [ |
| 105 | + true, |
| 106 | + "single", |
| 107 | + "avoid-escape" |
| 108 | + ], |
| 109 | + "semicolon": [true, "always"], |
| 110 | + "trailing-comma": [ |
| 111 | + true, |
| 112 | + { |
| 113 | + "multiline": "always", |
| 114 | + "singleline": "never" |
| 115 | + } |
| 116 | + ], |
| 117 | + "typedef-whitespace": [ |
| 118 | + true, |
| 119 | + { |
| 120 | + "call-signature": "nospace", |
| 121 | + "index-signature": "nospace", |
| 122 | + "parameter": "nospace", |
| 123 | + "property-declaration": "nospace", |
| 124 | + "variable-declaration": "nospace" |
| 125 | + } |
| 126 | + ], |
79 | 127 | "curly": true,
|
80 | 128 | "file-header": [
|
81 | 129 | true,
|
|
87 | 135 | "check-format",
|
88 | 136 | "allow-leading-underscore",
|
89 | 137 | "allow-pascal-case"
|
| 138 | + ], |
| 139 | + "whitespace": [ |
| 140 | + true, |
| 141 | + "check-branch", |
| 142 | + "check-decl", |
| 143 | + "check-module", |
| 144 | + "check-preblock", |
| 145 | + "check-operator", |
| 146 | + "check-separator", |
| 147 | + "check-type", |
| 148 | + "check-typecast" |
90 | 149 | ]
|
91 | 150 | }
|
92 | 151 | }
|
0 commit comments