From e68c9632c8a5723936d90bf1b8db0fb775a90ee7 Mon Sep 17 00:00:00 2001 From: Yudai NAKATA Date: Sat, 22 Jan 2022 20:38:47 +0900 Subject: [PATCH] chore: remove a workaround for eslint/eslint#15507 --- scripts/templates/test.ts.hbs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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: [