You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 4, 2020. It is now read-only.
* issue35:
Fix: array-bracket-spacing for destructuring typed parameter (fixesbabel#35)
Add the `array-bracket-spacing` rule with the necessary modifications from eslint/eslint
zaygraveyard
added a commit
to zaygraveyard/eslint-plugin-babel
that referenced
this issue
Dec 20, 2015
* issue35:
Fix: array-bracket-spacing for destructuring typed parameter (fixesbabel#35)
Add the `array-bracket-spacing` rule with the necessary modifications from eslint/eslint
test.js
What versions I'm using
eslint@1.10.3
babel-eslint@4.1.6
What I did
$eslint --parser babel-eslint test.js
What I expected
No errors
What actually happened
My Observations
The
ArrayPattern
node of the AST tree contains the type annotation.The
array-bracket-spacing
rule checks the last and before last tokens of the AST node (ie. last is>
an before last isany
).Since the between the before last token and last token their is a space and the expected is no space, an error is reported.
The text was updated successfully, but these errors were encountered: