Skip to main content
17-Peridot
September 16, 2020
Solved

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

  • September 16, 2020
  • 2 replies
  • 1760 views

Hi, 

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

 

seanccc_0-1600244332692.png

 

Regards,

Sean

Best answer by GabrielB

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

2 replies

Community Manager
November 4, 2020

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

Community Manager
November 13, 2020

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

GabrielB12-AmethystAnswer
12-Amethyst
November 16, 2020

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