4 * Copyright 2018 Palantir Technologies, Inc.
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
18 Object.defineProperty(exports, "__esModule", { value: true });
20 "adjacent-overload-signatures": true,
22 options: ["parameters", "statements"],
25 options: ["array-simple"],
28 "arrow-return-shorthand": true,
31 ["Object", "Avoid using the `Object` type. Did you mean `object`?"],
34 "Avoid using the `Function` type. Prefer a specific function type, like `() => void`.",
36 ["Boolean", "Avoid using the `Boolean` type. Did you mean `boolean`?"],
37 ["Number", "Avoid using the `Number` type. Did you mean `number`?"],
38 ["String", "Avoid using the `String` type. Did you mean `string`?"],
39 ["Symbol", "Avoid using the `Symbol` type. Did you mean `symbol`?"],
42 "callable-types": true,
45 options: ["check-space"],
48 "cyclomatic-complexity": false,
51 "import-spacing": true,
56 options: ["always-prefix"],
58 "interface-over-type-literal": true,
60 "label-position": true,
61 "max-classes-per-file": { options: 1 },
62 "max-line-length": { options: 120 },
63 "member-access": true,
66 order: "statics-first",
70 "no-angle-bracket-type-assertion": true,
74 "no-conditional-assignment": true,
75 "no-consecutive-blank-lines": true,
79 "no-duplicate-super": true,
81 "no-empty-interface": true,
83 "no-internal-module": true,
84 "no-invalid-this": false,
85 "no-misused-new": true,
87 "no-parameter-properties": false,
89 "no-reference-import": true,
90 "no-shadowed-variable": true,
91 "no-string-literal": true,
92 "no-string-throw": true,
93 "no-switch-case-fall-through": false,
94 "no-trailing-whitespace": true,
95 "no-unnecessary-initializer": true,
96 "no-unsafe-finally": true,
97 "no-unused-expression": true,
98 "no-use-before-declare": false,
99 "no-var-keyword": true,
100 "no-var-requires": true,
101 "object-literal-key-quotes": { options: "consistent-as-needed" },
102 "object-literal-shorthand": true,
103 "object-literal-sort-keys": true,
113 "one-variable-per-declaration": { options: ["ignore-for-loop"] },
114 "only-arrow-functions": {
115 options: ["allow-declarations", "allow-named-functions"],
119 "import-sources-order": "case-insensitive",
120 "module-source-path": "full",
121 "named-imports-order": "case-insensitive",
124 "prefer-const": true,
125 "prefer-for-of": true,
127 options: ["double", "avoid-escape"],
130 semicolon: { options: ["always"] },
131 "space-before-function-paren": {
134 asyncArrow: "always",
135 constructor: "never",
142 esSpecCompliant: true,
147 "triple-equals": { options: ["allow-null-check"] },
149 "typedef-whitespace": {
152 "call-signature": "nospace",
153 "index-signature": "nospace",
154 parameter: "nospace",
155 "property-declaration": "nospace",
156 "variable-declaration": "nospace",
159 "call-signature": "onespace",
160 "index-signature": "onespace",
161 parameter: "onespace",
162 "property-declaration": "onespace",
163 "variable-declaration": "onespace",
167 "typeof-compare": false,
168 "unified-signatures": true,
171 options: ["ban-keywords", "check-format", "allow-pascal-case"],
186 options: ["parameters", "statements"],
192 "import-spacing": true,
196 "jsdoc-format": true,
197 "label-position": true,
204 "no-conditional-assignment": true,
205 "no-consecutive-blank-lines": true,
207 "no-construct": true,
209 "no-duplicate-super": true,
210 "no-duplicate-variable": true,
213 "no-reference": true,
214 "no-shadowed-variable": true,
215 "no-string-literal": true,
216 "no-string-throw": true,
217 "no-switch-case-fall-through": false,
218 "no-trailing-whitespace": true,
219 "no-unused-expression": true,
220 // disable this rule as it is very heavy performance-wise and not that useful
221 "no-use-before-declare": false,
222 "object-literal-sort-keys": true,
232 "one-variable-per-declaration": { options: ["ignore-for-loop"] },
234 options: ["double", "avoid-escape"],
237 semicolon: { options: ["always"] },
238 "space-before-function-paren": {
241 asyncArrow: "always",
242 constructor: "never",
253 "triple-equals": { options: ["allow-null-check"] },
256 options: ["ban-keywords", "check-format", "allow-pascal-case"],