Hacker News new | ask | show | jobs
by mattfenwick 4317 days ago
I'm confused by what "Style checking" (https://github.com/bevacqua/js/#style-checking) means.

Aren't many of the other suggestions precisely "style checking" concerns? Semicolons, spacing, string quotes, conditional brackets, etc. ?

Not to say that there isn't a difference -- just that I don't see what it is.

1 comments

Automated style checkers such as jscs

[1]: https://www.npmjs.org/package/jscs

That doesn't answer my question as far as I can tell, unless you're saying that:

      "Style checking" means "Automated style checkers such as jscs"
what's the difference between a style checker like jscs and a linter like jshint/jslint?
They are similar and have some overlap. However, the overlap is not 100%, so it's good practice to use both jshint and jscs together.

jshint is a static code analysis tool to identify and flag errors/potential errors in JS code. jscs is purely a style checker.