JShint curly brace position

Kyle Hamilton
Kyle Hamilton used Ask the Experts™
on
We are using jshint in our javascript projects. We need a rule that specifies that curly braces should start at the end of a line, K&R style, and NOT on the next line (Allman). I've read the docs, but can't find anything that does that.

Is there a way to set jshint to give an error for Allman style braces?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Owner (Aidellio)
Most Valuable Expert 2015
Commented:
These are the options: http://www.jshint.com/docs/options/ as you've no doubt seen.  It's not there to specify exactly what you want so the answer is no it can't be done.

Have you contacted the author directly

This is a complete list of all configuration options accepted by JSHint. If you see something missing, you should either file a bug or email me.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial