From fc619326eedf7ef2efa51444ecdead81a36a204f Mon Sep 17 00:00:00 2001 From: Petr Severa Date: Sat, 6 Jun 2020 21:56:40 +0200 Subject: [PATCH] feat(eslint-plugin): [naming-convention] put identifiers in quotes in error messages (#2182) Fixes #2178 --- packages/eslint-plugin/src/rules/naming-convention.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/eslint-plugin/src/rules/naming-convention.ts b/packages/eslint-plugin/src/rules/naming-convention.ts index d9f5b319c11..d5ea49463bd 100644 --- a/packages/eslint-plugin/src/rules/naming-convention.ts +++ b/packages/eslint-plugin/src/rules/naming-convention.ts @@ -346,15 +346,15 @@ export default util.createRule({ type: 'suggestion', messages: { unexpectedUnderscore: - '{{type}} name {{name}} must not have a {{position}} underscore.', + '{{type}} name `{{name}}` must not have a {{position}} underscore.', missingUnderscore: - '{{type}} name {{name}} must have a {{position}} underscore.', + '{{type}} name `{{name}}` must have a {{position}} underscore.', missingAffix: - '{{type}} name {{name}} must have one of the following {{position}}es: {{affixes}}', + '{{type}} name `{{name}}` must have one of the following {{position}}es: {{affixes}}', satisfyCustom: - '{{type}} name {{name}} must {{regexMatch}} the RegExp: {{regex}}', + '{{type}} name `{{name}}` must {{regexMatch}} the RegExp: {{regex}}', doesNotMatchFormat: - '{{type}} name {{name}} must match one of the following formats: {{formats}}', + '{{type}} name `{{name}}` must match one of the following formats: {{formats}}', }, schema: SCHEMA, },