From a0d385dd7d1632c101128011f77d788c3819201c Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Mon, 4 Nov 2013 11:02:20 +0200 Subject: [PATCH] Force usage of single quotes in JSHint. --- lib/text/free.js | 2 +- package.json | 2 +- test/binary-test.js | 2 +- test/unit-test.js | 2 ++ 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/text/free.js b/lib/text/free.js index eb0f057e..7ffee633 100644 --- a/lib/text/free.js +++ b/lib/text/free.js @@ -29,7 +29,7 @@ module.exports = function Free() { var nextEnd = 0; var cursor = 0; var matchedParenthesis = null; - var singleParenthesis = "'"; + var singleParenthesis = '\''; var doubleParenthesis = '"'; var dataLength = data.length; diff --git a/package.json b/package.json index af379c37..8741478b 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ "noarg": true, "node": true, "plusplus": false, - "quotmark": "true", + "quotmark": "single", "regexp": false, "strict": false, "trailing": true, diff --git a/test/binary-test.js b/test/binary-test.js index 87c88cb4..0e4461c0 100644 --- a/test/binary-test.js +++ b/test/binary-test.js @@ -143,7 +143,7 @@ exports.commandsSuite = vows.describe('binary commands').addBatch({ }), 'disable @import': binaryContext('-s ./test/data/imports.css', { 'should disable the import processing': function(error, stdout) { - assert.equal(stdout, "@import url(./partials/one.css);@import url(./partials/two.css);.imports{color:#000}"); + assert.equal(stdout, '@import url(./partials/one.css);@import url(./partials/two.css);.imports{color:#000}'); } }), 'relative image paths': { diff --git a/test/unit-test.js b/test/unit-test.js index 783cb8bb..e15aecbf 100644 --- a/test/unit-test.js +++ b/test/unit-test.js @@ -1,3 +1,5 @@ +/* jshint quotmark: false */ + var vows = require('vows'); var assert = require('assert'); var path = require('path'); -- 2.34.1