Force usage of single quotes in JSHint.
authorXhmikosR <xhmikosr@users.sourceforge.net>
Mon, 4 Nov 2013 09:02:20 +0000 (11:02 +0200)
committerXhmikosR <xhmikosr@users.sourceforge.net>
Mon, 4 Nov 2013 10:19:38 +0000 (12:19 +0200)
lib/text/free.js
package.json
test/binary-test.js
test/unit-test.js

index eb0f057..7ffee63 100644 (file)
@@ -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;
 
index af379c3..8741478 100644 (file)
@@ -52,7 +52,7 @@
     "noarg": true,
     "node": true,
     "plusplus": false,
-    "quotmark": "true",
+    "quotmark": "single",
     "regexp": false,
     "strict": false,
     "trailing": true,
index 87c88cb..0e4461c 100644 (file)
@@ -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': {
index 783cb8b..e15aecb 100644 (file)
@@ -1,3 +1,5 @@
+/* jshint quotmark: false */
+
 var vows = require('vows');
 var assert = require('assert');
 var path = require('path');