Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 526d336

Browse files
Andaristbradzacher
authored andcommitted
chore: add test for function types & no-restricted-globals rule (typescript-eslint#1055)
1 parent 514bed9 commit 526d336

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/eslint-plugin/tests/eslint-rules/no-restricted-globals.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ export default class Test {
2424
`,
2525
options: ['status'],
2626
},
27+
{
28+
code: `
29+
type Handler = (event: string) => any
30+
`,
31+
options: ['event'],
32+
},
2733
],
2834
invalid: [],
2935
});

0 commit comments

Comments
 (0)