Skip to content

Commit

Permalink
fix(putout) run-babel-plugins: ":" -> "/"
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed Aug 1, 2019
1 parent b1f7c38 commit f8feca4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/putout/lib/run-babel-plugins/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion packages/putout/test/putout.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f8feca4

Please sign in to comment.