Commit 05a7281
fix: don't crash when encountering unparameterized Arrays (#402)
While these are disallowed in Flow, `typeof Array` is a valid type,
which could trigger this.
Rather than try to enumerate other possible cases, I simply check to
make sure we don't crash when we hit them.1 parent 397b7a1 commit 05a7281
File tree
2 files changed
+13
-1
lines changed- src/rules/arrayStyle
- tests/rules/assertions
2 files changed
+13
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
131 | 141 | | |
132 | 142 | | |
133 | 143 | | |
0 commit comments