.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / tslint / lib / configs / latest.js
1 "use strict";
2 /**
3  * @license
4  * Copyright 2018 Palantir Technologies, Inc.
5  *
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
9  *
10  *     http://www.apache.org/licenses/LICENSE-2.0
11  *
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.
17  */
18 Object.defineProperty(exports, "__esModule", { value: true });
19 // tslint:disable object-literal-sort-keys
20 // tslint:disable:object-literal-key-quotes
21 exports.rules = {
22     // added in v5.1
23     align: {
24         options: ["parameters", "statements", "members"],
25     },
26     "no-invalid-template-strings": true,
27     "no-sparse-arrays": true,
28     // added in v5.2
29     "no-object-literal-type-assertion": true,
30     // added in v5.3
31     "prefer-conditional-expression": true,
32     "prefer-object-spread": true,
33     // added in v5.4
34     "no-duplicate-variable": { options: "check-parameters" },
35     // added in v5.5
36     "no-this-assignment": true,
37     // added in v5.6
38     "no-duplicate-imports": true,
39     "space-within-parens": { options: 0 },
40     "no-submodule-imports": true,
41     // added in v5.7
42     whitespace: {
43         options: [
44             "check-branch",
45             "check-decl",
46             "check-operator",
47             "check-separator",
48             "check-type",
49             "check-typecast",
50             "check-type-operator",
51             "check-rest-spread",
52         ],
53     },
54     // added in v5.8
55     "ban-comma-operator": true,
56     "jsdoc-format": { options: "check-multiline-start" },
57     "no-duplicate-switch-case": true,
58     "no-implicit-dependencies": true,
59     "no-return-await": true,
60     // added in v5.12
61     "function-constructor": true,
62     "unnecessary-bind": true,
63 };
64 // tslint:enable object-literal-sort-keys
65 // work around "extends" being a keyword
66 var xtends = "tslint:recommended";
67 exports.extends = xtends;