Javascript Linter or lint configuration for Rhino

61 views
Skip to first unread message

Masakore

unread,
Feb 20, 2024, 10:19:01 PM2/20/24
to mozilla-rhino
Hi team,

Fist of all, thanks for the great contribution. My project heavily relies on this library.
By the way, does anyone know some ready-made javascript linter configuration? If such a thing doesn't exist, I guess I might need to set mixed rules applicable for ES5 and ES6? I am bit lost. Appreciate your advice on this. Thanks.

Best,
Masa

Stefan Schnell

unread,
Feb 25, 2024, 4:06:00 AM2/25/24
to mozilla-rhino
Hello Masa,

I use the JSHint with the following options:

const options = {
  esversion: 5,
  rhino: true,
  moz: true
};


JSHint generates a warning if the source code is not ES5 compliant. If there are no further errors, you may then be able to check again in a second step with esversion:6.

Best regards
Stefan

Masayuki Osuka

unread,
Feb 25, 2024, 7:48:19 PM2/25/24
to mozill...@googlegroups.com
Hi Stefan,

Thanks so much for your reply. I'll try JSHint with the suggested configuration. 

Best,
Masa


Best,
Masa

--
You received this message because you are subscribed to a topic in the Google Groups "mozilla-rhino" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mozilla-rhino/h-WbmbnSAd0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mozilla-rhin...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mozilla-rhino/70925339-f84e-4f1d-b409-774016451802n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages