Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 1 | { |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 2 | "extends": [ |
| 3 | "tslint:recommended" |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 4 | ], |
| 5 | "rules": { |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 6 | "cognitive-complexity": false, |
| 7 | "trailing-comma": true, |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 8 | "callable-types": true, |
| 9 | "class-name": true, |
| 10 | "comment-format": [ |
| 11 | true, |
| 12 | "check-space" |
| 13 | ], |
| 14 | "curly": true, |
| 15 | "eofline": true, |
| 16 | "forin": true, |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 17 | "import-spacing": true, |
| 18 | "indent": [ |
| 19 | true, |
| 20 | "spaces" |
| 21 | ], |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 22 | //"interface-over-type-literal": true, |
| 23 | //"label-position": true, |
| 24 | "interface-name": [true, "never-prefix"], |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 25 | "max-line-length": [ |
| 26 | true, |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 27 | 200 |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 28 | ], |
| 29 | "member-access": false, |
| 30 | "member-ordering": [ |
| 31 | true, |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 32 | { |
| 33 | "order": "fields-first" |
| 34 | } |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 35 | ], |
| 36 | "no-arg": true, |
| 37 | "no-bitwise": true, |
| 38 | "no-console": [ |
| 39 | true, |
| 40 | "debug", |
| 41 | "info", |
| 42 | "time", |
| 43 | "timeEnd", |
| 44 | "trace" |
| 45 | ], |
| 46 | "no-construct": true, |
| 47 | "no-debugger": true, |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 48 | "no-empty": true, |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 49 | "no-empty-interface": true, |
| 50 | "no-eval": true, |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 51 | "no-inferrable-types": false, |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 52 | "no-shadowed-variable": true, |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 53 | "no-string-literal": true, |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 54 | "no-string-throw": true, |
| 55 | "no-switch-case-fall-through": true, |
| 56 | "no-trailing-whitespace": true, |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 57 | "no-unused-expression": [ |
| 58 | true, |
| 59 | "allow-fast-null-checks" |
| 60 | ], |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 61 | "no-var-keyword": true, |
| 62 | "object-literal-sort-keys": false, |
| 63 | "one-line": [ |
| 64 | true, |
| 65 | "check-open-brace", |
| 66 | "check-catch", |
| 67 | "check-else", |
| 68 | "check-whitespace" |
| 69 | ], |
| 70 | "prefer-const": true, |
| 71 | "quotemark": [ |
| 72 | true, |
| 73 | "single" |
| 74 | ], |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 75 | "semicolon": [ |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 76 | true, |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 77 | "always" |
| 78 | ], |
| 79 | "triple-equals": [ |
| 80 | true, |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 81 | "allow-null-check", |
| 82 | "allow-undefined-check" |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 83 | ], |
| 84 | "typedef-whitespace": [ |
| 85 | true, |
| 86 | { |
| 87 | "call-signature": "nospace", |
| 88 | "index-signature": "nospace", |
| 89 | "parameter": "nospace", |
| 90 | "property-declaration": "nospace", |
| 91 | "variable-declaration": "nospace" |
| 92 | } |
| 93 | ], |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 94 | "variable-name": [ |
| 95 | true, |
| 96 | "check-format", |
| 97 | "ban-keywords" |
| 98 | ], |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 99 | "whitespace": [ |
| 100 | true, |
| 101 | "check-branch", |
| 102 | "check-decl", |
| 103 | "check-operator", |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 104 | "check-module", |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 105 | "check-separator", |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 106 | "check-type", |
| 107 | "check-preblock" |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 108 | ], |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 109 | "ban-types": [ |
| 110 | true, |
| 111 | [ |
| 112 | "Object", |
| 113 | "Avoid using the `Object` type. Did you mean `object`?" |
| 114 | ], |
| 115 | [ |
| 116 | "Boolean", |
| 117 | "Avoid using the `Boolean` type. Did you mean `boolean`?" |
| 118 | ], |
| 119 | [ |
| 120 | "Number", |
| 121 | "Avoid using the `Number` type. Did you mean `number`?" |
| 122 | ], |
| 123 | [ |
| 124 | "String", |
| 125 | "Avoid using the `String` type. Did you mean `string`?" |
| 126 | ], |
| 127 | [ |
| 128 | "Symbol", |
| 129 | "Avoid using the `Symbol` type. Did you mean `symbol`?" |
| 130 | ] |
| 131 | ] |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 132 | } |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 133 | } |