initial commit
This commit is contained in:
264
node_modules/tslint/lib/configs/all.d.ts
generated
vendored
Normal file
264
node_modules/tslint/lib/configs/all.d.ts
generated
vendored
Normal file
@@ -0,0 +1,264 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2017 Palantir Technologies, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
export declare const rules: {
|
||||
"adjacent-overload-signatures": boolean;
|
||||
"ban-types": {
|
||||
options: string[][];
|
||||
};
|
||||
"ban-ts-ignore": boolean;
|
||||
"member-access": {
|
||||
options: string[];
|
||||
};
|
||||
"member-ordering": {
|
||||
options: {
|
||||
order: string;
|
||||
alphabetize: boolean;
|
||||
};
|
||||
};
|
||||
"no-any": boolean;
|
||||
"no-empty-interface": boolean;
|
||||
"no-for-in": boolean;
|
||||
"no-import-side-effect": boolean;
|
||||
"no-inferrable-types": {
|
||||
options: string[];
|
||||
};
|
||||
"no-internal-module": boolean;
|
||||
"no-magic-numbers": boolean;
|
||||
"no-namespace": boolean;
|
||||
"no-non-null-assertion": boolean;
|
||||
"no-reference": boolean;
|
||||
"no-restricted-globals": boolean;
|
||||
"no-this-assignment": boolean;
|
||||
"no-var-requires": boolean;
|
||||
"only-arrow-functions": boolean;
|
||||
"prefer-for-of": boolean;
|
||||
"prefer-readonly": boolean;
|
||||
"promise-function-async": boolean;
|
||||
typedef: {
|
||||
options: string[];
|
||||
};
|
||||
"typedef-whitespace": {
|
||||
options: {
|
||||
"call-signature": string;
|
||||
"index-signature": string;
|
||||
parameter: string;
|
||||
"property-declaration": string;
|
||||
"variable-declaration": string;
|
||||
}[];
|
||||
};
|
||||
"unified-signatures": boolean;
|
||||
"await-promise": boolean;
|
||||
"ban-comma-operator": boolean;
|
||||
curly: boolean;
|
||||
forin: boolean;
|
||||
"function-constructor": boolean;
|
||||
"label-position": boolean;
|
||||
"no-arg": boolean;
|
||||
"no-async-without-await": boolean;
|
||||
"no-bitwise": boolean;
|
||||
"no-conditional-assignment": boolean;
|
||||
"no-console": boolean;
|
||||
"no-construct": boolean;
|
||||
"no-debugger": boolean;
|
||||
"no-duplicate-super": boolean;
|
||||
"no-duplicate-switch-case": boolean;
|
||||
"no-duplicate-variable": {
|
||||
options: string[];
|
||||
};
|
||||
"no-dynamic-delete": boolean;
|
||||
"no-empty": boolean;
|
||||
"no-eval": boolean;
|
||||
"no-floating-promises": boolean;
|
||||
"no-for-in-array": boolean;
|
||||
"no-implicit-dependencies": boolean;
|
||||
"no-inferred-empty-object-type": boolean;
|
||||
"no-invalid-template-strings": boolean;
|
||||
"no-misused-new": boolean;
|
||||
"no-null-keyword": boolean;
|
||||
"no-null-undefined-union": boolean;
|
||||
"no-object-literal-type-assertion": boolean;
|
||||
"no-promise-as-boolean": boolean;
|
||||
"no-return-await": boolean;
|
||||
"no-shadowed-variable": boolean;
|
||||
"no-string-literal": boolean;
|
||||
"no-string-throw": boolean;
|
||||
"no-sparse-arrays": boolean;
|
||||
"no-submodule-imports": boolean;
|
||||
"no-tautology-expression": boolean;
|
||||
"no-unbound-method": boolean;
|
||||
"no-unnecessary-class": {
|
||||
options: string[];
|
||||
};
|
||||
"no-unsafe-any": boolean;
|
||||
"no-unsafe-finally": boolean;
|
||||
"no-unused-expression": boolean;
|
||||
"no-use-before-declare": boolean;
|
||||
"no-var-keyword": boolean;
|
||||
"no-void-expression": boolean;
|
||||
"prefer-conditional-expression": boolean;
|
||||
radix: boolean;
|
||||
"restrict-plus-operands": boolean;
|
||||
"static-this": boolean;
|
||||
"strict-boolean-expressions": boolean;
|
||||
"strict-string-expressions": boolean;
|
||||
"strict-comparisons": boolean;
|
||||
"strict-type-predicates": boolean;
|
||||
"switch-default": boolean;
|
||||
"triple-equals": boolean;
|
||||
"unnecessary-constructor": boolean;
|
||||
"use-default-type-parameter": boolean;
|
||||
"use-isnan": boolean;
|
||||
"cyclomatic-complexity": boolean;
|
||||
eofline: boolean;
|
||||
indent: {
|
||||
options: string[];
|
||||
};
|
||||
"invalid-void": boolean;
|
||||
"linebreak-style": {
|
||||
options: string;
|
||||
};
|
||||
"max-classes-per-file": {
|
||||
options: number;
|
||||
};
|
||||
"max-file-line-count": {
|
||||
options: number;
|
||||
};
|
||||
"max-line-length": {
|
||||
options: {
|
||||
limit: number;
|
||||
};
|
||||
};
|
||||
"no-default-export": boolean;
|
||||
"no-default-import": boolean;
|
||||
"no-duplicate-imports": boolean;
|
||||
"no-irregular-whitespace": boolean;
|
||||
"no-mergeable-namespace": boolean;
|
||||
"no-parameter-reassignment": boolean;
|
||||
"no-require-imports": boolean;
|
||||
"no-trailing-whitespace": boolean;
|
||||
"object-literal-sort-keys": boolean;
|
||||
"prefer-const": boolean;
|
||||
"trailing-comma": {
|
||||
options: {
|
||||
esSpecCompliant: boolean;
|
||||
multiline: string;
|
||||
singleline: string;
|
||||
};
|
||||
};
|
||||
align: {
|
||||
options: string[];
|
||||
};
|
||||
"array-type": {
|
||||
options: string;
|
||||
};
|
||||
"arrow-parens": boolean;
|
||||
"arrow-return-shorthand": {
|
||||
options: string;
|
||||
};
|
||||
"binary-expression-operand-order": boolean;
|
||||
"callable-types": boolean;
|
||||
"class-name": boolean;
|
||||
"comment-format": {
|
||||
options: string[];
|
||||
};
|
||||
"comment-type": {
|
||||
options: string[];
|
||||
};
|
||||
"completed-docs": boolean;
|
||||
deprecation: boolean;
|
||||
encoding: boolean;
|
||||
"file-name-casing": {
|
||||
options: string;
|
||||
};
|
||||
"import-spacing": boolean;
|
||||
"increment-decrement": boolean;
|
||||
"interface-name": boolean;
|
||||
"interface-over-type-literal": boolean;
|
||||
"jsdoc-format": {
|
||||
options: string;
|
||||
};
|
||||
"match-default-export-name": boolean;
|
||||
"new-parens": boolean;
|
||||
"newline-before-return": boolean;
|
||||
"newline-per-chained-call": boolean;
|
||||
"no-angle-bracket-type-assertion": boolean;
|
||||
"no-boolean-literal-compare": boolean;
|
||||
"no-consecutive-blank-lines": boolean;
|
||||
"no-parameter-properties": boolean;
|
||||
"no-redundant-jsdoc": boolean;
|
||||
"no-reference-import": boolean;
|
||||
"no-unnecessary-callback-wrapper": boolean;
|
||||
"no-unnecessary-initializer": boolean;
|
||||
"no-unnecessary-qualifier": boolean;
|
||||
"no-unnecessary-type-assertion": boolean;
|
||||
"number-literal-format": boolean;
|
||||
"object-literal-key-quotes": {
|
||||
options: string;
|
||||
};
|
||||
"object-literal-shorthand": boolean;
|
||||
"one-line": {
|
||||
options: string[];
|
||||
};
|
||||
"one-variable-per-declaration": boolean;
|
||||
"ordered-imports": {
|
||||
options: {
|
||||
"grouped-imports": boolean;
|
||||
"import-sources-order": string;
|
||||
"named-imports-order": string;
|
||||
"module-source-path": string;
|
||||
};
|
||||
};
|
||||
"prefer-function-over-method": boolean;
|
||||
"prefer-method-signature": boolean;
|
||||
"prefer-object-spread": boolean;
|
||||
"prefer-switch": boolean;
|
||||
"prefer-template": boolean;
|
||||
"prefer-while": boolean;
|
||||
quotemark: {
|
||||
options: string[];
|
||||
};
|
||||
"return-undefined": boolean;
|
||||
semicolon: {
|
||||
options: string[];
|
||||
};
|
||||
"space-before-function-paren": {
|
||||
options: {
|
||||
anonymous: string;
|
||||
asyncArrow: string;
|
||||
constructor: string;
|
||||
method: string;
|
||||
named: string;
|
||||
};
|
||||
};
|
||||
"space-within-parens": {
|
||||
options: number;
|
||||
};
|
||||
"switch-final-break": boolean;
|
||||
"type-literal-delimiter": boolean;
|
||||
"unnecessary-bind": boolean;
|
||||
"unnecessary-else": boolean;
|
||||
"variable-name": {
|
||||
options: string[];
|
||||
};
|
||||
whitespace: {
|
||||
options: string[];
|
||||
};
|
||||
};
|
||||
export declare const RULES_EXCLUDED_FROM_ALL_CONFIG: string[];
|
||||
export declare const jsRules: {
|
||||
[key: string]: any;
|
||||
};
|
||||
304
node_modules/tslint/lib/configs/all.js
generated
vendored
Normal file
304
node_modules/tslint/lib/configs/all.js
generated
vendored
Normal file
@@ -0,0 +1,304 @@
|
||||
"use strict";
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2017 Palantir Technologies, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var path_1 = require("path");
|
||||
var ruleLoader_1 = require("../ruleLoader");
|
||||
// tslint:disable object-literal-sort-keys
|
||||
// tslint:disable object-literal-key-quotes
|
||||
exports.rules = {
|
||||
// TypeScript Specific
|
||||
"adjacent-overload-signatures": true,
|
||||
"ban-types": {
|
||||
options: [
|
||||
["Object", "Avoid using the `Object` type. Did you mean `object`?"],
|
||||
[
|
||||
"Function",
|
||||
"Avoid using the `Function` type. Prefer a specific function type, like `() => void`.",
|
||||
],
|
||||
["Boolean", "Avoid using the `Boolean` type. Did you mean `boolean`?"],
|
||||
["Number", "Avoid using the `Number` type. Did you mean `number`?"],
|
||||
["String", "Avoid using the `String` type. Did you mean `string`?"],
|
||||
["Symbol", "Avoid using the `Symbol` type. Did you mean `symbol`?"],
|
||||
],
|
||||
},
|
||||
"ban-ts-ignore": true,
|
||||
"member-access": {
|
||||
options: ["check-accessor", "check-constructor", "check-parameter-property"],
|
||||
},
|
||||
"member-ordering": {
|
||||
options: {
|
||||
order: "statics-first",
|
||||
alphabetize: true,
|
||||
},
|
||||
},
|
||||
"no-any": true,
|
||||
"no-empty-interface": true,
|
||||
"no-for-in": true,
|
||||
"no-import-side-effect": true,
|
||||
// Technically this is not the strictest setting, but don't want to conflict with "typedef"
|
||||
"no-inferrable-types": { options: ["ignore-params"] },
|
||||
"no-internal-module": true,
|
||||
"no-magic-numbers": true,
|
||||
"no-namespace": true,
|
||||
"no-non-null-assertion": true,
|
||||
"no-reference": true,
|
||||
"no-restricted-globals": true,
|
||||
"no-this-assignment": true,
|
||||
"no-var-requires": true,
|
||||
"only-arrow-functions": true,
|
||||
"prefer-for-of": true,
|
||||
"prefer-readonly": true,
|
||||
"promise-function-async": true,
|
||||
typedef: {
|
||||
options: [
|
||||
"call-signature",
|
||||
"arrow-call-signature",
|
||||
"parameter",
|
||||
"arrow-parameter",
|
||||
"property-declaration",
|
||||
"variable-declaration",
|
||||
"member-variable-declaration",
|
||||
],
|
||||
},
|
||||
"typedef-whitespace": {
|
||||
options: [
|
||||
{
|
||||
"call-signature": "nospace",
|
||||
"index-signature": "nospace",
|
||||
parameter: "nospace",
|
||||
"property-declaration": "nospace",
|
||||
"variable-declaration": "nospace",
|
||||
},
|
||||
{
|
||||
"call-signature": "onespace",
|
||||
"index-signature": "onespace",
|
||||
parameter: "onespace",
|
||||
"property-declaration": "onespace",
|
||||
"variable-declaration": "onespace",
|
||||
},
|
||||
],
|
||||
},
|
||||
"unified-signatures": true,
|
||||
// Functionality
|
||||
"await-promise": true,
|
||||
// "ban": no sensible default
|
||||
"ban-comma-operator": true,
|
||||
curly: true,
|
||||
forin: true,
|
||||
"function-constructor": true,
|
||||
// "import-blacklist": no sensible default
|
||||
"label-position": true,
|
||||
"no-arg": true,
|
||||
"no-async-without-await": true,
|
||||
"no-bitwise": true,
|
||||
"no-conditional-assignment": true,
|
||||
"no-console": true,
|
||||
"no-construct": true,
|
||||
"no-debugger": true,
|
||||
"no-duplicate-super": true,
|
||||
"no-duplicate-switch-case": true,
|
||||
"no-duplicate-variable": { options: ["check-parameters"] },
|
||||
"no-dynamic-delete": true,
|
||||
"no-empty": true,
|
||||
"no-eval": true,
|
||||
"no-floating-promises": true,
|
||||
"no-for-in-array": true,
|
||||
"no-implicit-dependencies": true,
|
||||
"no-inferred-empty-object-type": true,
|
||||
"no-invalid-template-strings": true,
|
||||
// "no-invalid-this": Won't this be deprecated?
|
||||
"no-misused-new": true,
|
||||
"no-null-keyword": true,
|
||||
"no-null-undefined-union": true,
|
||||
"no-object-literal-type-assertion": true,
|
||||
"no-promise-as-boolean": true,
|
||||
"no-return-await": true,
|
||||
"no-shadowed-variable": true,
|
||||
"no-string-literal": true,
|
||||
"no-string-throw": true,
|
||||
"no-sparse-arrays": true,
|
||||
"no-submodule-imports": true,
|
||||
"no-tautology-expression": true,
|
||||
"no-unbound-method": true,
|
||||
"no-unnecessary-class": { options: ["allow-empty-class"] },
|
||||
"no-unsafe-any": true,
|
||||
"no-unsafe-finally": true,
|
||||
"no-unused-expression": true,
|
||||
// "no-unused-variable" - deprecated in #3919
|
||||
"no-use-before-declare": true,
|
||||
"no-var-keyword": true,
|
||||
"no-void-expression": true,
|
||||
"prefer-conditional-expression": true,
|
||||
radix: true,
|
||||
"restrict-plus-operands": true,
|
||||
"static-this": true,
|
||||
"strict-boolean-expressions": true,
|
||||
"strict-string-expressions": true,
|
||||
"strict-comparisons": true,
|
||||
"strict-type-predicates": true,
|
||||
"switch-default": true,
|
||||
"triple-equals": true,
|
||||
"unnecessary-constructor": true,
|
||||
"use-default-type-parameter": true,
|
||||
"use-isnan": true,
|
||||
// Maintainability
|
||||
"cyclomatic-complexity": true,
|
||||
eofline: true,
|
||||
indent: { options: ["spaces"] },
|
||||
"invalid-void": true,
|
||||
"linebreak-style": { options: "LF" },
|
||||
"max-classes-per-file": { options: 1 },
|
||||
"max-file-line-count": { options: 1000 },
|
||||
"max-line-length": {
|
||||
options: { limit: 120 },
|
||||
},
|
||||
"no-default-export": true,
|
||||
"no-default-import": true,
|
||||
"no-duplicate-imports": true,
|
||||
"no-irregular-whitespace": true,
|
||||
"no-mergeable-namespace": true,
|
||||
"no-parameter-reassignment": true,
|
||||
"no-require-imports": true,
|
||||
"no-trailing-whitespace": true,
|
||||
"object-literal-sort-keys": true,
|
||||
"prefer-const": true,
|
||||
"trailing-comma": {
|
||||
options: {
|
||||
esSpecCompliant: true,
|
||||
multiline: "always",
|
||||
singleline: "never",
|
||||
},
|
||||
},
|
||||
// Style
|
||||
align: {
|
||||
options: ["parameters", "arguments", "statements", "elements", "members"],
|
||||
},
|
||||
"array-type": { options: "array-simple" },
|
||||
"arrow-parens": true,
|
||||
"arrow-return-shorthand": { options: "multiline" },
|
||||
"binary-expression-operand-order": true,
|
||||
"callable-types": true,
|
||||
"class-name": true,
|
||||
"comment-format": { options: ["check-space", "check-uppercase"] },
|
||||
"comment-type": { options: ["singleline", "multiline", "doc", "directive"] },
|
||||
"completed-docs": true,
|
||||
deprecation: true,
|
||||
encoding: true,
|
||||
"file-name-casing": { options: "camel-case" },
|
||||
"import-spacing": true,
|
||||
"increment-decrement": true,
|
||||
"interface-name": true,
|
||||
"interface-over-type-literal": true,
|
||||
"jsdoc-format": { options: "check-multiline-start" },
|
||||
"match-default-export-name": true,
|
||||
"new-parens": true,
|
||||
"newline-before-return": true,
|
||||
"newline-per-chained-call": true,
|
||||
"no-angle-bracket-type-assertion": true,
|
||||
"no-boolean-literal-compare": true,
|
||||
"no-consecutive-blank-lines": true,
|
||||
"no-parameter-properties": true,
|
||||
"no-redundant-jsdoc": true,
|
||||
"no-reference-import": true,
|
||||
"no-unnecessary-callback-wrapper": true,
|
||||
"no-unnecessary-initializer": true,
|
||||
"no-unnecessary-qualifier": true,
|
||||
"no-unnecessary-type-assertion": true,
|
||||
"number-literal-format": true,
|
||||
"object-literal-key-quotes": { options: "consistent-as-needed" },
|
||||
"object-literal-shorthand": true,
|
||||
"one-line": {
|
||||
options: [
|
||||
"check-catch",
|
||||
"check-else",
|
||||
"check-finally",
|
||||
"check-open-brace",
|
||||
"check-whitespace",
|
||||
],
|
||||
},
|
||||
"one-variable-per-declaration": true,
|
||||
"ordered-imports": {
|
||||
options: {
|
||||
"grouped-imports": true,
|
||||
"import-sources-order": "case-insensitive",
|
||||
"named-imports-order": "case-insensitive",
|
||||
"module-source-path": "full",
|
||||
},
|
||||
},
|
||||
"prefer-function-over-method": true,
|
||||
"prefer-method-signature": true,
|
||||
"prefer-object-spread": true,
|
||||
"prefer-switch": true,
|
||||
"prefer-template": true,
|
||||
"prefer-while": true,
|
||||
quotemark: {
|
||||
options: ["double", "avoid-escape", "avoid-template"],
|
||||
},
|
||||
"return-undefined": true,
|
||||
semicolon: { options: ["always"] },
|
||||
"space-before-function-paren": {
|
||||
options: {
|
||||
anonymous: "never",
|
||||
asyncArrow: "always",
|
||||
constructor: "never",
|
||||
method: "never",
|
||||
named: "never",
|
||||
},
|
||||
},
|
||||
"space-within-parens": { options: 0 },
|
||||
"switch-final-break": true,
|
||||
"type-literal-delimiter": true,
|
||||
"unnecessary-bind": true,
|
||||
"unnecessary-else": true,
|
||||
"variable-name": { options: ["ban-keywords", "check-format", "require-const-for-all-caps"] },
|
||||
whitespace: {
|
||||
options: [
|
||||
"check-branch",
|
||||
"check-decl",
|
||||
"check-operator",
|
||||
"check-module",
|
||||
"check-separator",
|
||||
"check-type",
|
||||
"check-typecast",
|
||||
"check-preblock",
|
||||
"check-type-operator",
|
||||
"check-rest-spread",
|
||||
],
|
||||
},
|
||||
};
|
||||
exports.RULES_EXCLUDED_FROM_ALL_CONFIG = [
|
||||
"ban",
|
||||
"fileHeader",
|
||||
"importBlacklist",
|
||||
"noInvalidThis",
|
||||
"noSwitchCaseFallThrough",
|
||||
"typeofCompare",
|
||||
"noUnusedVariable",
|
||||
];
|
||||
// Exclude typescript-only rules from jsRules, otherwise it's identical.
|
||||
exports.jsRules = {};
|
||||
for (var _i = 0, _a = Object.keys(exports.rules); _i < _a.length; _i++) {
|
||||
var key = _a[_i];
|
||||
var Rule = ruleLoader_1.findRule(key, path_1.join(__dirname, "..", "rules"));
|
||||
if (Rule === undefined) {
|
||||
throw new Error("Couldn't find rule '" + key + "'.");
|
||||
}
|
||||
if (!Rule.metadata.typescriptOnly) {
|
||||
exports.jsRules[key] = exports.rules[key];
|
||||
}
|
||||
}
|
||||
49
node_modules/tslint/lib/configs/latest.d.ts
generated
vendored
Normal file
49
node_modules/tslint/lib/configs/latest.d.ts
generated
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2018 Palantir Technologies, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
export declare const rules: {
|
||||
align: {
|
||||
options: string[];
|
||||
};
|
||||
"no-invalid-template-strings": boolean;
|
||||
"no-sparse-arrays": boolean;
|
||||
"no-object-literal-type-assertion": boolean;
|
||||
"prefer-conditional-expression": boolean;
|
||||
"prefer-object-spread": boolean;
|
||||
"no-duplicate-variable": {
|
||||
options: string;
|
||||
};
|
||||
"no-this-assignment": boolean;
|
||||
"no-duplicate-imports": boolean;
|
||||
"space-within-parens": {
|
||||
options: number;
|
||||
};
|
||||
"no-submodule-imports": boolean;
|
||||
whitespace: {
|
||||
options: string[];
|
||||
};
|
||||
"ban-comma-operator": boolean;
|
||||
"jsdoc-format": {
|
||||
options: string;
|
||||
};
|
||||
"no-duplicate-switch-case": boolean;
|
||||
"no-implicit-dependencies": boolean;
|
||||
"no-return-await": boolean;
|
||||
"function-constructor": boolean;
|
||||
"unnecessary-bind": boolean;
|
||||
};
|
||||
declare const xtends = "tslint:recommended";
|
||||
export { xtends as extends };
|
||||
67
node_modules/tslint/lib/configs/latest.js
generated
vendored
Normal file
67
node_modules/tslint/lib/configs/latest.js
generated
vendored
Normal file
@@ -0,0 +1,67 @@
|
||||
"use strict";
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2018 Palantir Technologies, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
// tslint:disable object-literal-sort-keys
|
||||
// tslint:disable:object-literal-key-quotes
|
||||
exports.rules = {
|
||||
// added in v5.1
|
||||
align: {
|
||||
options: ["parameters", "statements", "members"],
|
||||
},
|
||||
"no-invalid-template-strings": true,
|
||||
"no-sparse-arrays": true,
|
||||
// added in v5.2
|
||||
"no-object-literal-type-assertion": true,
|
||||
// added in v5.3
|
||||
"prefer-conditional-expression": true,
|
||||
"prefer-object-spread": true,
|
||||
// added in v5.4
|
||||
"no-duplicate-variable": { options: "check-parameters" },
|
||||
// added in v5.5
|
||||
"no-this-assignment": true,
|
||||
// added in v5.6
|
||||
"no-duplicate-imports": true,
|
||||
"space-within-parens": { options: 0 },
|
||||
"no-submodule-imports": true,
|
||||
// added in v5.7
|
||||
whitespace: {
|
||||
options: [
|
||||
"check-branch",
|
||||
"check-decl",
|
||||
"check-operator",
|
||||
"check-separator",
|
||||
"check-type",
|
||||
"check-typecast",
|
||||
"check-type-operator",
|
||||
"check-rest-spread",
|
||||
],
|
||||
},
|
||||
// added in v5.8
|
||||
"ban-comma-operator": true,
|
||||
"jsdoc-format": { options: "check-multiline-start" },
|
||||
"no-duplicate-switch-case": true,
|
||||
"no-implicit-dependencies": true,
|
||||
"no-return-await": true,
|
||||
// added in v5.12
|
||||
"function-constructor": true,
|
||||
"unnecessary-bind": true,
|
||||
};
|
||||
// tslint:enable object-literal-sort-keys
|
||||
// work around "extends" being a keyword
|
||||
var xtends = "tslint:recommended";
|
||||
exports.extends = xtends;
|
||||
238
node_modules/tslint/lib/configs/recommended.d.ts
generated
vendored
Normal file
238
node_modules/tslint/lib/configs/recommended.d.ts
generated
vendored
Normal file
@@ -0,0 +1,238 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2018 Palantir Technologies, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
export declare const rules: {
|
||||
"adjacent-overload-signatures": boolean;
|
||||
align: {
|
||||
options: string[];
|
||||
};
|
||||
"array-type": {
|
||||
options: string[];
|
||||
};
|
||||
"arrow-parens": boolean;
|
||||
"arrow-return-shorthand": boolean;
|
||||
"ban-types": {
|
||||
options: string[][];
|
||||
};
|
||||
"callable-types": boolean;
|
||||
"class-name": boolean;
|
||||
"comment-format": {
|
||||
options: string[];
|
||||
};
|
||||
curly: boolean;
|
||||
"cyclomatic-complexity": boolean;
|
||||
eofline: boolean;
|
||||
forin: boolean;
|
||||
"import-spacing": boolean;
|
||||
indent: {
|
||||
options: string[];
|
||||
};
|
||||
"interface-name": {
|
||||
options: string[];
|
||||
};
|
||||
"interface-over-type-literal": boolean;
|
||||
"jsdoc-format": boolean;
|
||||
"label-position": boolean;
|
||||
"max-classes-per-file": {
|
||||
options: number;
|
||||
};
|
||||
"max-line-length": {
|
||||
options: number;
|
||||
};
|
||||
"member-access": boolean;
|
||||
"member-ordering": {
|
||||
options: {
|
||||
order: string;
|
||||
};
|
||||
};
|
||||
"new-parens": boolean;
|
||||
"no-angle-bracket-type-assertion": boolean;
|
||||
"no-any": boolean;
|
||||
"no-arg": boolean;
|
||||
"no-bitwise": boolean;
|
||||
"no-conditional-assignment": boolean;
|
||||
"no-consecutive-blank-lines": boolean;
|
||||
"no-console": boolean;
|
||||
"no-construct": boolean;
|
||||
"no-debugger": boolean;
|
||||
"no-duplicate-super": boolean;
|
||||
"no-empty": boolean;
|
||||
"no-empty-interface": boolean;
|
||||
"no-eval": boolean;
|
||||
"no-internal-module": boolean;
|
||||
"no-invalid-this": boolean;
|
||||
"no-misused-new": boolean;
|
||||
"no-namespace": boolean;
|
||||
"no-parameter-properties": boolean;
|
||||
"no-reference": boolean;
|
||||
"no-reference-import": boolean;
|
||||
"no-shadowed-variable": boolean;
|
||||
"no-string-literal": boolean;
|
||||
"no-string-throw": boolean;
|
||||
"no-switch-case-fall-through": boolean;
|
||||
"no-trailing-whitespace": boolean;
|
||||
"no-unnecessary-initializer": boolean;
|
||||
"no-unsafe-finally": boolean;
|
||||
"no-unused-expression": boolean;
|
||||
"no-use-before-declare": boolean;
|
||||
"no-var-keyword": boolean;
|
||||
"no-var-requires": boolean;
|
||||
"object-literal-key-quotes": {
|
||||
options: string;
|
||||
};
|
||||
"object-literal-shorthand": boolean;
|
||||
"object-literal-sort-keys": boolean;
|
||||
"one-line": {
|
||||
options: string[];
|
||||
};
|
||||
"one-variable-per-declaration": {
|
||||
options: string[];
|
||||
};
|
||||
"only-arrow-functions": {
|
||||
options: string[];
|
||||
};
|
||||
"ordered-imports": {
|
||||
options: {
|
||||
"import-sources-order": string;
|
||||
"module-source-path": string;
|
||||
"named-imports-order": string;
|
||||
};
|
||||
};
|
||||
"prefer-const": boolean;
|
||||
"prefer-for-of": boolean;
|
||||
quotemark: {
|
||||
options: string[];
|
||||
};
|
||||
radix: boolean;
|
||||
semicolon: {
|
||||
options: string[];
|
||||
};
|
||||
"space-before-function-paren": {
|
||||
options: {
|
||||
anonymous: string;
|
||||
asyncArrow: string;
|
||||
constructor: string;
|
||||
method: string;
|
||||
named: string;
|
||||
};
|
||||
};
|
||||
"trailing-comma": {
|
||||
options: {
|
||||
esSpecCompliant: boolean;
|
||||
multiline: string;
|
||||
singleline: string;
|
||||
};
|
||||
};
|
||||
"triple-equals": {
|
||||
options: string[];
|
||||
};
|
||||
typedef: boolean;
|
||||
"typedef-whitespace": {
|
||||
options: {
|
||||
"call-signature": string;
|
||||
"index-signature": string;
|
||||
parameter: string;
|
||||
"property-declaration": string;
|
||||
"variable-declaration": string;
|
||||
}[];
|
||||
};
|
||||
"typeof-compare": boolean;
|
||||
"unified-signatures": boolean;
|
||||
"use-isnan": boolean;
|
||||
"variable-name": {
|
||||
options: string[];
|
||||
};
|
||||
whitespace: {
|
||||
options: string[];
|
||||
};
|
||||
};
|
||||
export declare const jsRules: {
|
||||
align: {
|
||||
options: string[];
|
||||
};
|
||||
"class-name": boolean;
|
||||
curly: boolean;
|
||||
eofline: boolean;
|
||||
forin: boolean;
|
||||
"import-spacing": boolean;
|
||||
indent: {
|
||||
options: string[];
|
||||
};
|
||||
"jsdoc-format": boolean;
|
||||
"label-position": boolean;
|
||||
"max-line-length": {
|
||||
options: number[];
|
||||
};
|
||||
"new-parens": boolean;
|
||||
"no-arg": boolean;
|
||||
"no-bitwise": boolean;
|
||||
"no-conditional-assignment": boolean;
|
||||
"no-consecutive-blank-lines": boolean;
|
||||
"no-console": boolean;
|
||||
"no-construct": boolean;
|
||||
"no-debugger": boolean;
|
||||
"no-duplicate-super": boolean;
|
||||
"no-duplicate-variable": boolean;
|
||||
"no-empty": boolean;
|
||||
"no-eval": boolean;
|
||||
"no-reference": boolean;
|
||||
"no-shadowed-variable": boolean;
|
||||
"no-string-literal": boolean;
|
||||
"no-string-throw": boolean;
|
||||
"no-switch-case-fall-through": boolean;
|
||||
"no-trailing-whitespace": boolean;
|
||||
"no-unused-expression": boolean;
|
||||
"no-use-before-declare": boolean;
|
||||
"object-literal-sort-keys": boolean;
|
||||
"one-line": {
|
||||
options: string[];
|
||||
};
|
||||
"one-variable-per-declaration": {
|
||||
options: string[];
|
||||
};
|
||||
quotemark: {
|
||||
options: string[];
|
||||
};
|
||||
radix: boolean;
|
||||
semicolon: {
|
||||
options: string[];
|
||||
};
|
||||
"space-before-function-paren": {
|
||||
options: {
|
||||
anonymous: string;
|
||||
asyncArrow: string;
|
||||
constructor: string;
|
||||
method: string;
|
||||
named: string;
|
||||
};
|
||||
};
|
||||
"trailing-comma": {
|
||||
options: {
|
||||
multiline: string;
|
||||
singleline: string;
|
||||
};
|
||||
};
|
||||
"triple-equals": {
|
||||
options: string[];
|
||||
};
|
||||
"use-isnan": boolean;
|
||||
"variable-name": {
|
||||
options: string[];
|
||||
};
|
||||
whitespace: {
|
||||
options: string[];
|
||||
};
|
||||
};
|
||||
268
node_modules/tslint/lib/configs/recommended.js
generated
vendored
Normal file
268
node_modules/tslint/lib/configs/recommended.js
generated
vendored
Normal file
@@ -0,0 +1,268 @@
|
||||
"use strict";
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2018 Palantir Technologies, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.rules = {
|
||||
"adjacent-overload-signatures": true,
|
||||
align: {
|
||||
options: ["parameters", "statements"],
|
||||
},
|
||||
"array-type": {
|
||||
options: ["array-simple"],
|
||||
},
|
||||
"arrow-parens": true,
|
||||
"arrow-return-shorthand": true,
|
||||
"ban-types": {
|
||||
options: [
|
||||
["Object", "Avoid using the `Object` type. Did you mean `object`?"],
|
||||
[
|
||||
"Function",
|
||||
"Avoid using the `Function` type. Prefer a specific function type, like `() => void`.",
|
||||
],
|
||||
["Boolean", "Avoid using the `Boolean` type. Did you mean `boolean`?"],
|
||||
["Number", "Avoid using the `Number` type. Did you mean `number`?"],
|
||||
["String", "Avoid using the `String` type. Did you mean `string`?"],
|
||||
["Symbol", "Avoid using the `Symbol` type. Did you mean `symbol`?"],
|
||||
],
|
||||
},
|
||||
"callable-types": true,
|
||||
"class-name": true,
|
||||
"comment-format": {
|
||||
options: ["check-space"],
|
||||
},
|
||||
curly: true,
|
||||
"cyclomatic-complexity": false,
|
||||
eofline: true,
|
||||
forin: true,
|
||||
"import-spacing": true,
|
||||
indent: {
|
||||
options: ["spaces"],
|
||||
},
|
||||
"interface-name": {
|
||||
options: ["always-prefix"],
|
||||
},
|
||||
"interface-over-type-literal": true,
|
||||
"jsdoc-format": true,
|
||||
"label-position": true,
|
||||
"max-classes-per-file": { options: 1 },
|
||||
"max-line-length": { options: 120 },
|
||||
"member-access": true,
|
||||
"member-ordering": {
|
||||
options: {
|
||||
order: "statics-first",
|
||||
},
|
||||
},
|
||||
"new-parens": true,
|
||||
"no-angle-bracket-type-assertion": true,
|
||||
"no-any": false,
|
||||
"no-arg": true,
|
||||
"no-bitwise": true,
|
||||
"no-conditional-assignment": true,
|
||||
"no-consecutive-blank-lines": true,
|
||||
"no-console": true,
|
||||
"no-construct": true,
|
||||
"no-debugger": true,
|
||||
"no-duplicate-super": true,
|
||||
"no-empty": true,
|
||||
"no-empty-interface": true,
|
||||
"no-eval": true,
|
||||
"no-internal-module": true,
|
||||
"no-invalid-this": false,
|
||||
"no-misused-new": true,
|
||||
"no-namespace": true,
|
||||
"no-parameter-properties": false,
|
||||
"no-reference": true,
|
||||
"no-reference-import": true,
|
||||
"no-shadowed-variable": true,
|
||||
"no-string-literal": true,
|
||||
"no-string-throw": true,
|
||||
"no-switch-case-fall-through": false,
|
||||
"no-trailing-whitespace": true,
|
||||
"no-unnecessary-initializer": true,
|
||||
"no-unsafe-finally": true,
|
||||
"no-unused-expression": true,
|
||||
"no-use-before-declare": false,
|
||||
"no-var-keyword": true,
|
||||
"no-var-requires": true,
|
||||
"object-literal-key-quotes": { options: "consistent-as-needed" },
|
||||
"object-literal-shorthand": true,
|
||||
"object-literal-sort-keys": true,
|
||||
"one-line": {
|
||||
options: [
|
||||
"check-catch",
|
||||
"check-else",
|
||||
"check-finally",
|
||||
"check-open-brace",
|
||||
"check-whitespace",
|
||||
],
|
||||
},
|
||||
"one-variable-per-declaration": { options: ["ignore-for-loop"] },
|
||||
"only-arrow-functions": {
|
||||
options: ["allow-declarations", "allow-named-functions"],
|
||||
},
|
||||
"ordered-imports": {
|
||||
options: {
|
||||
"import-sources-order": "case-insensitive",
|
||||
"module-source-path": "full",
|
||||
"named-imports-order": "case-insensitive",
|
||||
},
|
||||
},
|
||||
"prefer-const": true,
|
||||
"prefer-for-of": true,
|
||||
quotemark: {
|
||||
options: ["double", "avoid-escape"],
|
||||
},
|
||||
radix: true,
|
||||
semicolon: { options: ["always"] },
|
||||
"space-before-function-paren": {
|
||||
options: {
|
||||
anonymous: "never",
|
||||
asyncArrow: "always",
|
||||
constructor: "never",
|
||||
method: "never",
|
||||
named: "never",
|
||||
},
|
||||
},
|
||||
"trailing-comma": {
|
||||
options: {
|
||||
esSpecCompliant: true,
|
||||
multiline: "always",
|
||||
singleline: "never",
|
||||
},
|
||||
},
|
||||
"triple-equals": { options: ["allow-null-check"] },
|
||||
typedef: false,
|
||||
"typedef-whitespace": {
|
||||
options: [
|
||||
{
|
||||
"call-signature": "nospace",
|
||||
"index-signature": "nospace",
|
||||
parameter: "nospace",
|
||||
"property-declaration": "nospace",
|
||||
"variable-declaration": "nospace",
|
||||
},
|
||||
{
|
||||
"call-signature": "onespace",
|
||||
"index-signature": "onespace",
|
||||
parameter: "onespace",
|
||||
"property-declaration": "onespace",
|
||||
"variable-declaration": "onespace",
|
||||
},
|
||||
],
|
||||
},
|
||||
"typeof-compare": false,
|
||||
"unified-signatures": true,
|
||||
"use-isnan": true,
|
||||
"variable-name": {
|
||||
options: ["ban-keywords", "check-format", "allow-pascal-case"],
|
||||
},
|
||||
whitespace: {
|
||||
options: [
|
||||
"check-branch",
|
||||
"check-decl",
|
||||
"check-operator",
|
||||
"check-separator",
|
||||
"check-type",
|
||||
"check-typecast",
|
||||
],
|
||||
},
|
||||
};
|
||||
exports.jsRules = {
|
||||
align: {
|
||||
options: ["parameters", "statements"],
|
||||
},
|
||||
"class-name": true,
|
||||
curly: true,
|
||||
eofline: true,
|
||||
forin: true,
|
||||
"import-spacing": true,
|
||||
indent: {
|
||||
options: ["spaces"],
|
||||
},
|
||||
"jsdoc-format": true,
|
||||
"label-position": true,
|
||||
"max-line-length": {
|
||||
options: [120],
|
||||
},
|
||||
"new-parens": true,
|
||||
"no-arg": true,
|
||||
"no-bitwise": true,
|
||||
"no-conditional-assignment": true,
|
||||
"no-consecutive-blank-lines": true,
|
||||
"no-console": true,
|
||||
"no-construct": true,
|
||||
"no-debugger": true,
|
||||
"no-duplicate-super": true,
|
||||
"no-duplicate-variable": true,
|
||||
"no-empty": true,
|
||||
"no-eval": true,
|
||||
"no-reference": true,
|
||||
"no-shadowed-variable": true,
|
||||
"no-string-literal": true,
|
||||
"no-string-throw": true,
|
||||
"no-switch-case-fall-through": false,
|
||||
"no-trailing-whitespace": true,
|
||||
"no-unused-expression": true,
|
||||
// disable this rule as it is very heavy performance-wise and not that useful
|
||||
"no-use-before-declare": false,
|
||||
"object-literal-sort-keys": true,
|
||||
"one-line": {
|
||||
options: [
|
||||
"check-catch",
|
||||
"check-else",
|
||||
"check-finally",
|
||||
"check-open-brace",
|
||||
"check-whitespace",
|
||||
],
|
||||
},
|
||||
"one-variable-per-declaration": { options: ["ignore-for-loop"] },
|
||||
quotemark: {
|
||||
options: ["double", "avoid-escape"],
|
||||
},
|
||||
radix: true,
|
||||
semicolon: { options: ["always"] },
|
||||
"space-before-function-paren": {
|
||||
options: {
|
||||
anonymous: "never",
|
||||
asyncArrow: "always",
|
||||
constructor: "never",
|
||||
method: "never",
|
||||
named: "never",
|
||||
},
|
||||
},
|
||||
"trailing-comma": {
|
||||
options: {
|
||||
multiline: "always",
|
||||
singleline: "never",
|
||||
},
|
||||
},
|
||||
"triple-equals": { options: ["allow-null-check"] },
|
||||
"use-isnan": true,
|
||||
"variable-name": {
|
||||
options: ["ban-keywords", "check-format", "allow-pascal-case"],
|
||||
},
|
||||
whitespace: {
|
||||
options: [
|
||||
"check-branch",
|
||||
"check-decl",
|
||||
"check-operator",
|
||||
"check-separator",
|
||||
"check-type",
|
||||
"check-typecast",
|
||||
],
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user