From 7f4e4568e5fedf1b636df382018c8d1b9eb1ac0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A6=BE=E5=87=A0=E6=B5=B7?= Date: Fri, 12 Mar 2021 17:38:19 +0800 Subject: [PATCH] style: update eslint of ban-types --- .eslintrc.json | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 66ed365..1a3db7b 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -21,17 +21,26 @@ "plugin:@angular-eslint/template/process-inline-templates" ], "rules": { -// "@typescript-eslint/naming-convention": [ -// "off" -// ], + // "@typescript-eslint/naming-convention": [ + // "off" + // ], "prefer-arrow/prefer-arrow-functions": [ "off" ], -// "@typescript-eslint/member-ordering": [svn -// "on" -// ], + // "@typescript-eslint/member-ordering": [svn + // "on" + // ], "@typescript-eslint/ban-types": [ - "off" + "error", + { + "types": { + "Object": { + "message": "Use {} instead", + "fixWith": "{}" + }, + "{}": false + } + } ], "@angular-eslint/component-selector": [ "off",