[sprout] Codemod: add isComponent: false annotations to current fixtures

To keep the type signature simple, let's always have the same set of keys in 
`FIXTURE_ENTRYPOINT`
This commit is contained in:
Mofei Zhang
2023-08-16 15:32:13 -04:00
parent 6b242c12a9
commit ce015a164b
94 changed files with 141 additions and 0 deletions
@@ -14,6 +14,7 @@ function component() {
export const FIXTURE_ENTRYPOINT = {
fn: component,
params: [],
isComponent: false,
};
```
@@ -54,6 +55,7 @@ function component() {
export const FIXTURE_ENTRYPOINT = {
fn: component,
params: [],
isComponent: false,
};
```
@@ -10,4 +10,5 @@ function component() {
export const FIXTURE_ENTRYPOINT = {
fn: component,
params: [],
isComponent: false,
};
@@ -12,6 +12,7 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
```
@@ -45,6 +46,7 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
```
@@ -8,4 +8,5 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
@@ -12,6 +12,7 @@ function g() {
export const FIXTURE_ENTRYPOINT = {
fn: g,
params: [],
isComponent: false,
};
```
@@ -37,6 +38,7 @@ function g() {
export const FIXTURE_ENTRYPOINT = {
fn: g,
params: [],
isComponent: false,
};
```
@@ -8,4 +8,5 @@ function g() {
export const FIXTURE_ENTRYPOINT = {
fn: g,
params: [],
isComponent: false,
};
@@ -13,6 +13,7 @@ function f() {
export const FIXTURE_ENTRYPOINT = {
fn: f,
params: [],
isComponent: false,
};
```
@@ -28,6 +29,7 @@ function f() {
export const FIXTURE_ENTRYPOINT = {
fn: f,
params: [],
isComponent: false,
};
```
@@ -9,4 +9,5 @@ function f() {
export const FIXTURE_ENTRYPOINT = {
fn: f,
params: [],
isComponent: false,
};
@@ -14,6 +14,7 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
```
@@ -41,6 +42,7 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
```
@@ -10,4 +10,5 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
@@ -20,6 +20,7 @@ function Component() {
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [],
isComponent: false,
};
```
@@ -64,6 +65,7 @@ function Component() {
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [],
isComponent: false,
};
```
@@ -16,4 +16,5 @@ function Component() {
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [],
isComponent: false,
};
@@ -14,6 +14,7 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
```
@@ -33,6 +34,7 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
```
@@ -10,4 +10,5 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
@@ -13,6 +13,7 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
```
@@ -31,6 +32,7 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
```
@@ -9,4 +9,5 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
@@ -14,6 +14,7 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
```
@@ -32,6 +33,7 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
```
@@ -10,4 +10,5 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
@@ -24,6 +24,7 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
```
@@ -39,6 +40,7 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
```
@@ -20,4 +20,5 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
@@ -19,6 +19,7 @@ function Component() {
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [],
isComponent: false,
};
```
@@ -51,6 +52,7 @@ function Component() {
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [],
isComponent: false,
};
```
@@ -15,4 +15,5 @@ function Component() {
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [],
isComponent: false,
};
@@ -15,6 +15,7 @@ function Component() {
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [],
isComponent: false,
};
```
@@ -43,6 +44,7 @@ function Component() {
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [],
isComponent: false,
};
```
@@ -11,4 +11,5 @@ function Component() {
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [],
isComponent: false,
};
@@ -10,6 +10,7 @@ function f() {
export const FIXTURE_ENTRYPOINT = {
fn: f,
params: [],
isComponent: false,
};
```
@@ -24,6 +25,7 @@ function f() {
export const FIXTURE_ENTRYPOINT = {
fn: f,
params: [],
isComponent: false,
};
```
@@ -6,4 +6,5 @@ function f() {
export const FIXTURE_ENTRYPOINT = {
fn: f,
params: [],
isComponent: false,
};
@@ -13,6 +13,7 @@ function Component() {
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [],
isComponent: false,
};
```
@@ -40,6 +41,7 @@ function Component() {
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [],
isComponent: false,
};
```
@@ -9,4 +9,5 @@ function Component() {
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [],
isComponent: false,
};
@@ -16,6 +16,7 @@ function Component() {
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [],
isComponent: false,
};
```
@@ -53,6 +54,7 @@ function Component() {
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [],
isComponent: false,
};
```
@@ -12,4 +12,5 @@ function Component() {
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [],
isComponent: false,
};
@@ -17,6 +17,7 @@ function Component() {
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [],
isComponent: false,
};
```
@@ -55,6 +56,7 @@ function Component() {
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [],
isComponent: false,
};
```
@@ -13,4 +13,5 @@ function Component() {
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [],
isComponent: false,
};
@@ -14,6 +14,7 @@ function Component() {
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [],
isComponent: false,
};
```
@@ -41,6 +42,7 @@ function Component() {
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [],
isComponent: false,
};
```
@@ -10,4 +10,5 @@ function Component() {
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [],
isComponent: false,
};
@@ -14,6 +14,7 @@ function Component() {
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [],
isComponent: false,
};
```
@@ -41,6 +42,7 @@ function Component() {
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [],
isComponent: false,
};
```
@@ -10,4 +10,5 @@ function Component() {
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [],
isComponent: false,
};
@@ -13,6 +13,7 @@ function component() {
export const FIXTURE_ENTRYPOINT = {
fn: component,
params: [],
isComponent: false,
};
```
@@ -47,6 +48,7 @@ function component() {
export const FIXTURE_ENTRYPOINT = {
fn: component,
params: [],
isComponent: false,
};
```
@@ -9,4 +9,5 @@ function component() {
export const FIXTURE_ENTRYPOINT = {
fn: component,
params: [],
isComponent: false,
};
@@ -13,6 +13,7 @@ function component() {
export const FIXTURE_ENTRYPOINT = {
fn: component,
params: [],
isComponent: false,
};
```
@@ -37,6 +38,7 @@ function component() {
export const FIXTURE_ENTRYPOINT = {
fn: component,
params: [],
isComponent: false,
};
```
@@ -9,4 +9,5 @@ function component() {
export const FIXTURE_ENTRYPOINT = {
fn: component,
params: [],
isComponent: false,
};
@@ -20,6 +20,7 @@ function Component() {
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [],
isComponent: false,
};
```
@@ -53,6 +54,7 @@ function Component() {
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [],
isComponent: false,
};
```
@@ -16,4 +16,5 @@ function Component() {
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [],
isComponent: false,
};
@@ -17,6 +17,7 @@ function Component() {
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [],
isComponent: false,
};
```
@@ -49,6 +50,7 @@ function Component() {
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [],
isComponent: false,
};
```
@@ -13,4 +13,5 @@ function Component() {
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [],
isComponent: false,
};
@@ -19,6 +19,7 @@ function Component() {
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [],
isComponent: false,
};
```
@@ -62,6 +63,7 @@ function Component() {
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [],
isComponent: false,
};
```
@@ -15,4 +15,5 @@ function Component() {
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [],
isComponent: false,
};
@@ -15,6 +15,7 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
```
@@ -55,6 +56,7 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
```
@@ -11,4 +11,5 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
@@ -40,6 +40,7 @@ function Component() {
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [],
isComponent: false,
};
```
@@ -54,6 +55,7 @@ function Component() {
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [],
isComponent: false,
};
```
@@ -36,4 +36,5 @@ function Component() {
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [],
isComponent: false,
};
@@ -12,6 +12,7 @@ function component() {
export const FIXTURE_ENTRYPOINT = {
fn: component,
params: [],
isComponent: false,
};
```
@@ -38,6 +39,7 @@ function component() {
export const FIXTURE_ENTRYPOINT = {
fn: component,
params: [],
isComponent: false,
};
```
@@ -8,4 +8,5 @@ function component() {
export const FIXTURE_ENTRYPOINT = {
fn: component,
params: [],
isComponent: false,
};
@@ -12,6 +12,7 @@ function lowercasecomponent() {
export const FIXTURE_ENTRYPOINT = {
fn: lowercasecomponent,
params: [],
isComponent: false,
};
```
@@ -29,6 +30,7 @@ function lowercasecomponent() {
export const FIXTURE_ENTRYPOINT = {
fn: lowercasecomponent,
params: [],
isComponent: false,
};
```
@@ -8,4 +8,5 @@ function lowercasecomponent() {
export const FIXTURE_ENTRYPOINT = {
fn: lowercasecomponent,
params: [],
isComponent: false,
};
@@ -18,6 +18,7 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
```
@@ -30,6 +31,7 @@ function foo() {}
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
```
@@ -14,4 +14,5 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
@@ -15,6 +15,7 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
```
@@ -27,6 +28,7 @@ function foo() {}
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
```
@@ -11,4 +11,5 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
@@ -13,6 +13,7 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
```
@@ -31,6 +32,7 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
```
@@ -9,4 +9,5 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
@@ -13,6 +13,7 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
```
@@ -31,6 +32,7 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
```
@@ -9,4 +9,5 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
@@ -16,6 +16,7 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
```
@@ -28,6 +29,7 @@ function foo() {}
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
```
@@ -12,4 +12,5 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
@@ -19,6 +19,7 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
```
@@ -43,6 +44,7 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
```
@@ -15,4 +15,5 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
@@ -12,6 +12,7 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
```
@@ -37,6 +38,7 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
```
@@ -8,4 +8,5 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
@@ -12,6 +12,7 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
```
@@ -44,6 +45,7 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
```
@@ -8,4 +8,5 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
@@ -14,6 +14,7 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
```
@@ -28,6 +29,7 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
```
@@ -10,4 +10,5 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
@@ -17,6 +17,7 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
```
@@ -29,6 +30,7 @@ function foo() {}
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
```
@@ -13,4 +13,5 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
@@ -10,6 +10,7 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
```
@@ -22,6 +23,7 @@ function foo() {}
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
```
@@ -6,4 +6,5 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
@@ -14,6 +14,7 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
```
@@ -26,6 +27,7 @@ function foo() {}
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
```
@@ -10,4 +10,5 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
@@ -25,6 +25,7 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
```
@@ -48,6 +49,7 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
```
@@ -21,4 +21,5 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
@@ -13,6 +13,7 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
```
@@ -27,6 +28,7 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
```
@@ -9,4 +9,5 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
@@ -14,6 +14,7 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
```
@@ -29,6 +30,7 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
```
@@ -10,4 +10,5 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
@@ -14,6 +14,7 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
```
@@ -32,6 +33,7 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
```
@@ -10,4 +10,5 @@ function foo() {
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};
@@ -11,6 +11,7 @@ function component() {
export const FIXTURE_ENTRYPOINT = {
fn: component,
params: [],
isComponent: false,
};
```
@@ -36,6 +37,7 @@ function component() {
export const FIXTURE_ENTRYPOINT = {
fn: component,
params: [],
isComponent: false,
};
```
@@ -7,4 +7,5 @@ function component() {
export const FIXTURE_ENTRYPOINT = {
fn: component,
params: [],
isComponent: false,
};
@@ -13,6 +13,7 @@ function component() {
export const FIXTURE_ENTRYPOINT = {
fn: component,
params: [],
isComponent: false,
};
```
@@ -46,6 +47,7 @@ function component() {
export const FIXTURE_ENTRYPOINT = {
fn: component,
params: [],
isComponent: false,
};
```
@@ -9,4 +9,5 @@ function component() {
export const FIXTURE_ENTRYPOINT = {
fn: component,
params: [],
isComponent: false,
};
@@ -12,6 +12,7 @@ function component() {
export const FIXTURE_ENTRYPOINT = {
fn: component,
params: [],
isComponent: false,
};
```
@@ -26,6 +27,7 @@ function component() {
export const FIXTURE_ENTRYPOINT = {
fn: component,
params: [],
isComponent: false,
};
```
@@ -8,4 +8,5 @@ function component() {
export const FIXTURE_ENTRYPOINT = {
fn: component,
params: [],
isComponent: false,
};
@@ -14,6 +14,7 @@ function Component() {
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [],
isComponent: false,
};
```
@@ -37,6 +38,7 @@ function Component() {
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [],
isComponent: false,
};
```
@@ -10,4 +10,5 @@ function Component() {
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [],
isComponent: false,
};