enforce eslint space-infix-ops
authoralexlamsl <alexlamsl@gmail.com>
Thu, 31 Mar 2016 11:05:03 +0000 (19:05 +0800)
committeralexlamsl <alexlamsl@gmail.com>
Thu, 31 Mar 2016 17:24:40 +0000 (01:24 +0800)
.eslintrc.json
tests/minifier.js

index 9445cb5..c809c97 100644 (file)
@@ -79,6 +79,7 @@
     "semi": "error",
     "semi-spacing": "error",
     "space-before-blocks": "error",
+    "space-infix-ops": "error",
     "space-unary-ops": "error",
     "space-in-parens": "error",
     "spaced-comment": [
index 882b2cf..556c4d4 100644 (file)
@@ -959,7 +959,7 @@ test('collapsing whitespace', function() {
           '<pre>       \r\nxxxx<\/pre><span>x<\/span> <span>Hello<\/span> <b>billy<\/b>     \r\n' +
           '<input type=\"text\">\r\n<textarea><\/textarea>\r\n<pre><\/pre>';
   output = '<script type="text/javascript">var = "hello";</script>' +
-           '<style type="text/css">#foo { color: red;        }</style>'+
+           '<style type="text/css">#foo { color: red;        }</style>' +
            '<div><div><div>' +
            '<!-- hello --><div><!--! hello --><div><div class="">' +
            '<textarea disabled="disabled">     this is a textarea </textarea>' +