From 65d843d5c2fb9ad9939a7cc94897d389ef492670 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 18 Jun 2020 12:07:33 +0400 Subject: Corrected TypeScript rules Signed-off-by: Valentin Popov --- src/rules/typescript/default.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rules/typescript') diff --git a/src/rules/typescript/default.json b/src/rules/typescript/default.json index f65f761..52da311 100644 --- a/src/rules/typescript/default.json +++ b/src/rules/typescript/default.json @@ -133,7 +133,7 @@ "error" ], "@typescript-eslint/no-unsafe-member-access": [ - "error" + "warn" ], "@typescript-eslint/no-unsafe-return": [ "error" @@ -167,7 +167,7 @@ "error" ], "@typescript-eslint/prefer-readonly-parameter-types": [ - "error", + "warn", { "checkParameterProperties": true } -- cgit v1.2.3 From 700b1ff70454d4fdc0b4d8bb0d1c1d867cf4db01 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Tue, 23 Jun 2020 00:59:40 +0400 Subject: Fixed "@typescript-eslint/typedef" Signed-off-by: Valentin Popov --- src/rules/typescript/default.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rules/typescript') diff --git a/src/rules/typescript/default.json b/src/rules/typescript/default.json index 52da311..93a83aa 100644 --- a/src/rules/typescript/default.json +++ b/src/rules/typescript/default.json @@ -252,7 +252,7 @@ "objectDestructuring": true, "parameter": true, "propertyDeclaration": true, - "variableDeclaration": true, + "variableDeclaration": false, "variableDeclarationIgnoreFunction": false } ], @@ -289,4 +289,4 @@ "space-before-function-paren": [ "off" ] -} \ No newline at end of file +} -- cgit v1.2.3 From 0112b8616e3d103e943d32ea30675a51d400e96e Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Tue, 23 Jun 2020 01:05:55 +0400 Subject: Fixed "@typescript-eslint/typedef" Signed-off-by: Valentin Popov --- src/rules/typescript/default.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rules/typescript') diff --git a/src/rules/typescript/default.json b/src/rules/typescript/default.json index 93a83aa..b4fcc7a 100644 --- a/src/rules/typescript/default.json +++ b/src/rules/typescript/default.json @@ -249,7 +249,7 @@ "arrayDestructuring": true, "arrowParameter": true, "memberVariableDeclaration": true, - "objectDestructuring": true, + "objectDestructuring": false, "parameter": true, "propertyDeclaration": true, "variableDeclaration": false, -- cgit v1.2.3