function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sandile matheSandile mathe 

LWC error on VS code

Hi Guys, Can you you please help me with proper configs of my visual studio code. Everythings seems okay I have updated NodeJS, SF CLI & Jshint and set up all the Eviromental virables. But on LWC javascript file I get a syntax error when I use @api or @wire,please helpUser-added image
SwethaSwetha (Salesforce Developers) 
HI Sandile,
Can you try the recommendation mentioned in this post to see if it fixes the issue

https://salesforce.stackexchange.com/questions/260765/unable-to-pass-parameters-to-wired-property-in-lwc

https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.data_wire_service_about
 
Hope this helps you. Please mark this answer as best so that others facing the same issue will find this information useful. Thank you
David Zhu 🔥David Zhu 🔥
This seems a JSHint plugin issue. I think you should still be able to save to code to Salesforce.

Can you try config JSHint indent.

{ "indent": 1 }