aboutsummaryrefslogtreecommitdiff
path: root/node_modules/tslint/lib/configs
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-08-14 05:01:11 +0200
committerFlorian Dold <florian.dold@gmail.com>2017-08-14 05:02:09 +0200
commit363723fc84f7b8477592e0105aeb331ec9a017af (patch)
tree29f92724f34131bac64d6a318dd7e30612e631c7 /node_modules/tslint/lib/configs
parent5634e77ad96bfe1818f6b6ee70b7379652e5487f (diff)
node_modules
Diffstat (limited to 'node_modules/tslint/lib/configs')
-rw-r--r--node_modules/tslint/lib/configs/all.d.ts10
-rw-r--r--node_modules/tslint/lib/configs/all.js13
-rw-r--r--node_modules/tslint/lib/configs/latest.d.ts4
-rw-r--r--node_modules/tslint/lib/configs/latest.js10
4 files changed, 35 insertions, 2 deletions
diff --git a/node_modules/tslint/lib/configs/all.d.ts b/node_modules/tslint/lib/configs/all.d.ts
index 583a2d296..5a04decf4 100644
--- a/node_modules/tslint/lib/configs/all.d.ts
+++ b/node_modules/tslint/lib/configs/all.d.ts
@@ -17,6 +17,7 @@ export declare const rules: {
"no-namespace": boolean;
"no-non-null-assertion": boolean;
"no-reference": boolean;
+ "no-this-assignment": boolean;
"no-var-requires": boolean;
"only-arrow-functions": boolean;
"prefer-for-of": boolean;
@@ -41,7 +42,7 @@ export declare const rules: {
"no-construct": boolean;
"no-debugger": boolean;
"no-duplicate-super": boolean;
- "no-duplicate-variable": boolean;
+ "no-duplicate-variable": (string | boolean)[];
"no-empty": boolean;
"no-eval": boolean;
"no-floating-promises": boolean;
@@ -55,6 +56,7 @@ export declare const rules: {
"no-string-literal": boolean;
"no-string-throw": boolean;
"no-sparse-arrays": boolean;
+ "no-submodule-imports": boolean;
"no-unbound-method": boolean;
"no-unsafe-any": boolean;
"no-unsafe-finally": boolean;
@@ -70,6 +72,7 @@ export declare const rules: {
"strict-type-predicates": boolean;
"switch-default": boolean;
"triple-equals": boolean;
+ "use-default-type-parameter": boolean;
"use-isnan": boolean;
"cyclomatic-complexity": boolean;
"eofline": boolean;
@@ -79,6 +82,7 @@ export declare const rules: {
"max-file-line-count": (number | boolean)[];
"max-line-length": (number | boolean)[];
"no-default-export": boolean;
+ "no-duplicate-imports": boolean;
"no-irregular-whitespace": boolean;
"no-mergeable-namespace": boolean;
"no-require-imports": boolean;
@@ -93,6 +97,7 @@ export declare const rules: {
"array-type": (string | boolean)[];
"arrow-parens": boolean;
"arrow-return-shorthand": (string | boolean)[];
+ "binary-expression-operand-order": boolean;
"callable-types": boolean;
"class-name": boolean;
"comment-format": (string | boolean)[];
@@ -139,6 +144,9 @@ export declare const rules: {
"method": string;
"named": string;
})[];
+ "space-within-parens": (number | boolean)[];
+ "switch-final-break": boolean;
+ "type-literal-delimiter": boolean;
"variable-name": (string | boolean)[];
"whitespace": (string | boolean)[];
};
diff --git a/node_modules/tslint/lib/configs/all.js b/node_modules/tslint/lib/configs/all.js
index 526c3a30f..502c4a559 100644
--- a/node_modules/tslint/lib/configs/all.js
+++ b/node_modules/tslint/lib/configs/all.js
@@ -49,6 +49,7 @@ exports.rules = {
"no-namespace": true,
"no-non-null-assertion": true,
"no-reference": true,
+ "no-this-assignment": true,
"no-var-requires": true,
"only-arrow-functions": true,
"prefer-for-of": true,
@@ -95,7 +96,10 @@ exports.rules = {
"no-construct": true,
"no-debugger": true,
"no-duplicate-super": true,
- "no-duplicate-variable": true,
+ "no-duplicate-variable": [
+ true,
+ "check-parameters",
+ ],
"no-empty": true,
"no-eval": true,
"no-floating-promises": true,
@@ -110,6 +114,7 @@ exports.rules = {
"no-string-literal": true,
"no-string-throw": true,
"no-sparse-arrays": true,
+ "no-submodule-imports": true,
"no-unbound-method": true,
"no-unsafe-any": true,
"no-unsafe-finally": true,
@@ -125,6 +130,7 @@ exports.rules = {
"strict-type-predicates": true,
"switch-default": true,
"triple-equals": true,
+ "use-default-type-parameter": true,
"use-isnan": true,
// Maintainability
"cyclomatic-complexity": true,
@@ -135,6 +141,7 @@ exports.rules = {
"max-file-line-count": [true, 1000],
"max-line-length": [true, 120],
"no-default-export": true,
+ "no-duplicate-imports": true,
"no-irregular-whitespace": true,
"no-mergeable-namespace": true,
"no-require-imports": true,
@@ -157,6 +164,7 @@ exports.rules = {
"array-type": [true, "array-simple"],
"arrow-parens": true,
"arrow-return-shorthand": [true, "multiline"],
+ "binary-expression-operand-order": true,
"callable-types": true,
"class-name": true,
"comment-format": [
@@ -220,6 +228,9 @@ exports.rules = {
"method": "never",
"named": "never",
}],
+ "space-within-parens": [true, 0],
+ "switch-final-break": true,
+ "type-literal-delimiter": true,
"variable-name": [
true,
"ban-keywords",
diff --git a/node_modules/tslint/lib/configs/latest.d.ts b/node_modules/tslint/lib/configs/latest.d.ts
index 02fc74e53..37bd63881 100644
--- a/node_modules/tslint/lib/configs/latest.d.ts
+++ b/node_modules/tslint/lib/configs/latest.d.ts
@@ -23,6 +23,10 @@ export declare const rules: {
"no-object-literal-type-assertion": boolean;
"prefer-conditional-expression": boolean;
"prefer-object-spread": boolean;
+ "no-duplicate-variable": (string | boolean)[];
+ "no-this-assignment": boolean;
+ "no-duplicate-imports": boolean;
+ "space-within-parens": (number | boolean)[];
};
declare const xtends = "tslint:recommended";
export { xtends as extends };
diff --git a/node_modules/tslint/lib/configs/latest.js b/node_modules/tslint/lib/configs/latest.js
index 19eb18143..c27200602 100644
--- a/node_modules/tslint/lib/configs/latest.js
+++ b/node_modules/tslint/lib/configs/latest.js
@@ -34,6 +34,16 @@ exports.rules = {
// added in v5.3
"prefer-conditional-expression": true,
"prefer-object-spread": true,
+ // added in v5.4
+ "no-duplicate-variable": [
+ true,
+ "check-parameters",
+ ],
+ // added in v5.5
+ "no-this-assignment": true,
+ // added in v5.6
+ "no-duplicate-imports": true,
+ "space-within-parens": [true, 0],
};
// tslint:enable object-literal-sort-keys
// work around "extends" being a keyword