0

Do you know a good syntax checker and compressor for JavaScript?

We are currently using JSLINT as syntax checker and YUI for compression. Note we are using the library ExtJS for UI.

rossoft
  • 2,182
  • 17
  • 17
  • 1
    JSLint isn't a syntax checker: "SLint is a static code analysis tool used in software development for checking if JavaScript source code complies with coding rules" (wiki) – Aaaaaaaa Aug 02 '12 at 09:38

3 Answers3

4

What about the newly released Closure Compiler?

It removes dead code, checks syntax, variable references, types, and warns you about other common JavaScript pitfalls.

Christian C. Salvadó
  • 807,428
  • 183
  • 922
  • 838
1

Those are top-of-the-line tools that are very good at their respective jobs. Is there a particular area in which you would like to see improvement? Otherwise I would say stick with them.

Andrew Hare
  • 344,730
  • 71
  • 640
  • 635
  • Better compression without needing to modify our code, better javascript syntax checking (can be done?) – rossoft Nov 13 '09 at 06:06
1

You might want to consider Google's newly released Closure Compiler and it's Advanced Compilation options.

Sam C
  • 719
  • 4
  • 8