From e994a5843495b56ff13a55a715269284111342f5 Mon Sep 17 00:00:00 2001 From: Joshua Chen Date: Sat, 14 May 2022 12:21:36 +0800 Subject: [PATCH] refactor: improve message? --- .../src/rules/consistent-generic-constructors.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/eslint-plugin/src/rules/consistent-generic-constructors.ts b/packages/eslint-plugin/src/rules/consistent-generic-constructors.ts index eaceb6131e04..9dabc93167e3 100644 --- a/packages/eslint-plugin/src/rules/consistent-generic-constructors.ts +++ b/packages/eslint-plugin/src/rules/consistent-generic-constructors.ts @@ -15,9 +15,9 @@ export default createRule({ }, messages: { preferLHS: - 'The generic type arguments should be specified on the left-hand side of the constructor call.', + 'The generic type arguments should be specified on the left-hand side of the declaration as a type annotation.', preferRHS: - 'The generic type arguments should be specified on the right-hand side of the constructor call.', + 'The generic type arguments should be specified on the right-hand side of the declaration as constructor type arguments.', }, fixable: 'code', schema: [