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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy