Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/mq4-hover-shim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Rebert <code@rebertia.com>2015-08-07 22:19:57 +0300
committerChris Rebert <code@rebertia.com>2015-08-07 22:19:57 +0300
commit4be81b4bf3d6bf44f661645f31f02a038c5e3b30 (patch)
treea14d1d77a7cdb2fa6195d3dfcd888ce2941f882d
parent84e1296e128a69f82f777649e4ecae74cdb76dd3 (diff)
ESLint: enable spaced-comment
-rw-r--r--.eslintrc1
-rw-r--r--test/postprocessor_test.js10
2 files changed, 6 insertions, 5 deletions
diff --git a/.eslintrc b/.eslintrc
index 2182f31..61e9554 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -31,6 +31,7 @@
"no-duplicate-case": 2,
"no-empty-character-class": 2,
"no-eval": 2,
+ "spaced-comment": [2, "always", {"markers": ["!"]}],
"no-floating-decimal": 2,
"no-implied-eval": 2,
"no-inline-comments": 0,
diff --git a/test/postprocessor_test.js b/test/postprocessor_test.js
index ad47242..9b5fc4d 100644
--- a/test/postprocessor_test.js
+++ b/test/postprocessor_test.js
@@ -1,4 +1,4 @@
-/*eslint-env node */
+/* eslint-env node */
'use strict';
var postprocessor = require('../src/nodejs/postprocessor.js');
@@ -140,18 +140,18 @@ exports.mq4HoverShim = {
'errors when hoverSelectorPrefix is not provided': function (test) {
test.expect(1);
test.throws(function () {
- /*eslint-disable no-unused-expressions */
+ /* eslint-disable no-unused-expressions */
postprocessor({}).process("@media (hover: hover) { .foobar { display: none; } }").css;// jshint ignore:line
- /*eslint-enable no-unused-expressions */
+ /* eslint-enable no-unused-expressions */
}, Error, 'hoverSelectorPrefix option must be a string');
test.done();
},
'errors when hoverSelectorPrefix is not a string': function (test) {
test.expect(1);
test.throws(function () {
- /*eslint-disable no-unused-expressions */
+ /* eslint-disable no-unused-expressions */
postprocessor({hoverSelectorPrefix: 42}).process("@media (hover: hover) { .foobar { display: none; } }").css;// jshint ignore:line
- /*eslint-enable no-unused-expressions */
+ /* eslint-enable no-unused-expressions */
}, Error, 'hoverSelectorPrefix option must be a string');
test.done();
}