cloudcmd/rules/split-autoglobals-with-tape.js
2026-02-03 15:03:49 +02:00

8 lines
275 B
JavaScript

export const report = () => `Use 'if condition' instead of 'ternary expression'`;
export const replace = () => ({
'const test = autoGlobals(require("supertape"))': `{
const {test: tape} = require('supertape');
const test = autoGlobals(tape);
}`,
});