feat(javascript): move shorthand prop to property

This commit is contained in:
Steven Sojka 2021-01-26 07:54:49 -06:00 committed by Thomas Vigouroux
parent 76d4a2a0c4
commit db033f7239

View file

@ -11,13 +11,11 @@
;-----------
(property_identifier) @property
(shorthand_property_identifier) @variable
(shorthand_property_identifier) @property
; Special identifiers
;--------------------
(identifier) @variable
((identifier) @constructor
(#match? @constructor "^[A-Z]"))
@ -109,8 +107,8 @@
(identifier) @parameter))
; a => null
(variable_declarator
value: (arrow_function
(variable_declarator
value: (arrow_function
parameter: (identifier) @parameter))
; optional parameters