From 1060f8a9d3bab0583286fddef8c3c9d974c93438 Mon Sep 17 00:00:00 2001 From: Vasily Malykhin Date: Sat, 6 Jun 2020 13:27:53 +0300 Subject: [PATCH] Remove unnecessary line break --- src/rules/no-restricted-paths.js | 2 +- tests/src/rules/no-restricted-paths.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rules/no-restricted-paths.js b/src/rules/no-restricted-paths.js index a14ac55e7c..1627d533e6 100644 --- a/src/rules/no-restricted-paths.js +++ b/src/rules/no-restricted-paths.js @@ -104,7 +104,7 @@ module.exports = { context.report({ node, message: `Unexpected path "{{importPath}}" imported in restricted zone.` + - (zone.message ? `\n${zone.message}` : ''), + (zone.message ? ` ${zone.message}` : ''), data: { importPath }, }) }) diff --git a/tests/src/rules/no-restricted-paths.js b/tests/src/rules/no-restricted-paths.js index 6ceea6e282..0a729a246e 100644 --- a/tests/src/rules/no-restricted-paths.js +++ b/tests/src/rules/no-restricted-paths.js @@ -157,7 +157,7 @@ ruleTester.run('no-restricted-paths', rule, { } ], } ], errors: [ { - message: 'Unexpected path "../two/a.js" imported in restricted zone.\n' + + message: 'Unexpected path "../two/a.js" imported in restricted zone. ' + 'Custom message', line: 1, column: 15,