Skip to content

Commit b20bb34

Browse files
committed
test: add ESLint ignores for @typescript-eslint/await-thenable
In the test file, we don't need performance, and using the `for await` loop makes the code easier to read and follow IMO.
1 parent 5b58c56 commit b20bb34

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/index.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ test(loadPlugin, '19.x');
3535

3636
const lintUsingPluginRules = test.macro<[keyof typeof versions]>({
3737
async exec(t, version) {
38+
// eslint-disable-next-line @typescript-eslint/await-thenable
3839
for await (const rule of Object.keys(plugin.rules)) {
3940
const configs: Array<{async: boolean; ruleOutcome: RuleOutcome}> = [
4041
{async: false, ruleOutcome: [true]},
@@ -43,6 +44,7 @@ const lintUsingPluginRules = test.macro<[keyof typeof versions]>({
4344
{async: true, ruleOutcome: [false, `error message from ${rule}`]},
4445
];
4546

47+
// eslint-disable-next-line @typescript-eslint/await-thenable
4648
for await (const config of configs) {
4749
const report = await versions[version].lint(
4850
'chore: basic commit message',

0 commit comments

Comments
 (0)