From f8feca485ea757958f5e50bced8c1a9813a1b7c5 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Thu, 1 Aug 2019 17:06:58 +0300 Subject: [PATCH] fix(putout) run-babel-plugins: ":" -> "/" --- packages/putout/lib/run-babel-plugins/index.js | 2 +- packages/putout/test/putout.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/putout/lib/run-babel-plugins/index.js b/packages/putout/lib/run-babel-plugins/index.js index 31a1c0113f..40d6bdb822 100644 --- a/packages/putout/lib/run-babel-plugins/index.js +++ b/packages/putout/lib/run-babel-plugins/index.js @@ -25,7 +25,7 @@ module.exports = ({fix, ast, babelPlugins}) => { if (!fix && newCode !== oldCode) { const positions = getPositions(oldCode, newCode); - const rule = `babel: ${plugin}`; + const rule = `babel/${plugin}`; const message = getMessage(plugin); for (const position of positions) diff --git a/packages/putout/test/putout.js b/packages/putout/test/putout.js index 71be56d1c6..b98a6b1a6b 100644 --- a/packages/putout/test/putout.js +++ b/packages/putout/test/putout.js @@ -530,7 +530,7 @@ test('putout: babelPlugins: position: shebang', (t) => { }); const expected = [{ - rule: 'babel: transform-inline-consecutive-adds', + rule: 'babel/transform-inline-consecutive-adds', message: 'transform inline consecutive adds', position: { line: 4,