Search code examples
javascriptjshintautomatic-semicolon-insertion

How do I enable unnecessary semicolon warnings in JSHint?


Right now if I have:

console.log;

I don't get a warning from JSHint. I'd like to start using the standard of not using semicolons unnecessarily, and I'd appreciate a little help from JSHint. Is there a supported way to enable warnings for unnecessary semicolon use?

See: https://www.codecademy.com/blog/78

It recommends that I use JSLint instead, but JSLint enforces spaces over tabs which I'd prefer not to use.


Solution

  • After reading all of the options, I can find no method for enabling this in JSHint.

    Then, after reading more into standardJS which is really what I'm after, they have their own linter for atom which is what I was looking for.

    https://atom.io/packages/linter-js-standard