Solved

JShint curly brace position

Posted on 2014-02-27
1
416 Views
Last Modified: 2014-03-20
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?
0
Comment
Question by:Kyle Hamilton
1 Comment
 
LVL 42

Accepted Solution

by:
Rob Jurd, EE MVE earned 500 total points
ID: 39941874
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.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Angular JS question 24 39
getting id from database 5 24
jqplot Pie Chart 2 16
Cordova Camera plugin fails 2 21
When you need to keep track of a simple list of numbers or strings, the Array object is your most direct tool.  As we saw in my earlier EE Article (http://www.experts-exchange.com/A_3488.html), typical array handling might look like this: (CODE) B…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now