diff --git a/scripts/templates/test.ts.hbs b/scripts/templates/test.ts.hbs index aa296fc..02f9a65 100644 --- a/scripts/templates/test.ts.hbs +++ b/scripts/templates/test.ts.hbs @@ -16,10 +16,9 @@ const ruleTester = new TSESLint.RuleTester({ const Test = suite("Test suite for \`{{name}}\`."); -// Workaround for https://github.com/eslint/eslint/pull/15507 -RuleTester.it = (text, callback) => { - Test(text, callback) -} +TSESLint.RuleTester.it = (text, callback) => { + Test(text, callback); +}; ruleTester.run("{{name}}", rule, { valid: [