From 4be81b4bf3d6bf44f661645f31f02a038c5e3b30 Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Fri, 7 Aug 2015 12:19:57 -0700 Subject: ESLint: enable spaced-comment --- .eslintrc | 1 + test/postprocessor_test.js | 10 +++++----- 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(); } -- cgit v1.2.3