chore: effect pattern lint infrastructure (#35210)
This commit is contained in:
parent
1b88ff8d53
commit
1401901529
70 changed files with 524 additions and 234 deletions
13
script/ast-grep/rule-tests/no-import-alias-test.yml
Normal file
13
script/ast-grep/rule-tests/no-import-alias-test.yml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
id: no-import-alias
|
||||
valid:
|
||||
- import { foo } from "./foo"
|
||||
- import type { Foo } from "./foo"
|
||||
- import foo from "./foo"
|
||||
- export { foo as bar } from "./foo"
|
||||
- import type { Plugin as EffectPlugin } from "./foo"
|
||||
- import type { Foo as Bar, Baz } from "./foo"
|
||||
invalid:
|
||||
- import { foo as bar } from "./foo"
|
||||
- import { baz, foo as bar } from "./foo"
|
||||
- import { foo as bar, baz } from "./foo"
|
||||
- import { type Foo as Bar, baz } from "./foo"
|
||||
Loading…
Add table
Add a link
Reference in a new issue