Skip to main content
Sep 16, 2020 8:33 AM UTC
Solved

How to customize the setting of the Linting of the javascript service ?

Hi, 

The  current lint rule require each line end with semi ';'   ,  can I change the rule ?  

 

seanccc_0-1600244332692.png

 

Regards,

Sean

GabrielBAnswer
Nov 16, 2020 12:23 PM UTC

Hi @seanccc ,

If you feel that the OOTB editor isn't doing the job, there's a way to change it.

 

https://github.com/ptc-iot-sharing/MonacoEditorTWX

 

It's an editor based on Monaco(the open source library for Visual Studio Code), and you'll find that it offers a far superior experience.

 

Follow the instructions of how to install there and you should be good to go. It changes the editor for services and the CustomCSS tab in the mashup builder.

 

BR,

Gabriel

3 replies

Nov 4, 2020 8:02 PM UTC

Hi @seanccc.

 

I don't think ThingWorx allows changing the rules.

 

If interested, you can submit this as a request on the ThingWorx Ideas page.  This will allow others to vote for it in order to increase it's chances of being considered for a future release.

 

Regards.

 

--Sharon

Nov 13, 2020 9:38 PM UTC

Hi @seanccc.

 

If you feel your question has been answered, please mark the previous response as the Accepted Solution for the benefit of others with the same question.

 

Regards.

 

--Sharon

GabrielBAnswer
Nov 16, 2020 12:23 PM UTC

Hi @seanccc ,

If you feel that the OOTB editor isn't doing the job, there's a way to change it.

 

https://github.com/ptc-iot-sharing/MonacoEditorTWX

 

It's an editor based on Monaco(the open source library for Visual Studio Code), and you'll find that it offers a far superior experience.

 

Follow the instructions of how to install there and you should be good to go. It changes the editor for services and the CustomCSS tab in the mashup builder.

 

BR,

Gabriel