Feature request: enforce double/single quote consistency #306

Closed
timmywil opened this Issue Oct 13, 2011 · 3 comments

Projects

None yet

5 participants

@timmywil

Mixing these is annoying and jshint could enforce this for development groups who want to adhere to a style guide, as they should. The preference of single vs. double could be detected and there would be an option for whether or not to enforce it.

var c = "wow",
    ding = 'dong'; << Mixed double and single quotes
@gasi
gasi commented Dec 29, 2011

+1

@valueof
Member
valueof commented Dec 29, 2011

This is a solid feature, however, we have a feature-freeze for now so that we could concentrate on other priority items.

@sindresorhus

👍 I hate mixed quotes, it's almost as annoying as mixed tabs/space and trailing whitespace.

@goatslacker goatslacker pushed a commit that closed this issue May 10, 2012
@pracj3am pracj3am Adds option quotmark [closes #306]
 - {quotmark: true} // ensures consistency of quotation marks
 - {quotmark: "single"} // requires single quotes as quotation marks
 - {quotmark: "double"} // requires double quotes as quotation marks
1618a32
@jugglinmike jugglinmike added a commit to jugglinmike/jshint that referenced this issue Oct 21, 2014
@pracj3am pracj3am Adds option quotmark [closes #306]
 - {quotmark: true} // ensures consistency of quotation marks
 - {quotmark: "single"} // requires single quotes as quotation marks
 - {quotmark: "double"} // requires double quotes as quotation marks
3a35583
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment