Commit e0c328d
fix: object-type-delimeter with new babel-eslint (#317)
Using babel-eslint 8.2.1, the object-type-delimeter rule does nothing,
apparently because the ObjectType{CallProperty,Indexer,Property} nodes
no longer contain trailing semicolons/commas, but their parent
ObjectTypeAnnotation nodes do.
I tried to keep compatibility with both cases, because it's not clear
what version this project is targeting. However, I don't know of a good
way to test the new behavior given the version of babel-eslint now
locked in devDependencies.1 parent 3cd70b8 commit e0c328d
1 file changed
+12
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
29 | 39 | | |
30 | 40 | | |
31 | 41 | | |
| |||
0 commit comments