From 45f62c424cd3414849d15bc3eac59937e36b6441 Mon Sep 17 00:00:00 2001 From: Colin Eberhardt Date: Mon, 5 Oct 2015 13:21:19 +0100 Subject: [PATCH] Widened scope of CI eslint to all JavaScript files --- Gruntfile.js | 3 +-- src/__tests__/Layout-random-test.js | 2 +- src/__tests__/Layout-test.js | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 0858aff3..d3f06280 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -1,7 +1,6 @@ 'use strict'; module.exports = function(grunt) { - var fs = require('fs'); var path = require('path'); var isWindows = (/^win/).test(process.platform); @@ -56,7 +55,7 @@ module.exports = function(grunt) { options: { configFile: '.eslintrc' }, - target: ['<%= config.srcFolder %>/*.js'] + target: ['<%= config.srcFolder %>/**/*.js', './Gruntfile.js'] }, includereplace: { diff --git a/src/__tests__/Layout-random-test.js b/src/__tests__/Layout-random-test.js index e974ef19..d2da1dc7 100644 --- a/src/__tests__/Layout-random-test.js +++ b/src/__tests__/Layout-random-test.js @@ -98,7 +98,7 @@ describe('Random layout', function() { } function checkRandomLayout(i, node) { - it('should layout randomly #' + i + '.', function(node) { + it('should layout randomly #' + i + '.', function(node) { if (JSON.stringify(computeLayout(node)) !== JSON.stringify(computeDOMLayout(node))) { node = reduceTest(node); } diff --git a/src/__tests__/Layout-test.js b/src/__tests__/Layout-test.js index 3db4e72f..5134b53c 100755 --- a/src/__tests__/Layout-test.js +++ b/src/__tests__/Layout-test.js @@ -11,7 +11,6 @@ var testLayout = layoutTestUtils.testLayout; var testLayoutAgainstDomOnly = layoutTestUtils.testLayoutAgainstDomOnly; var testFillNodes = layoutTestUtils.testFillNodes; -var testExtractNodes = layoutTestUtils.testExtractNodes; var text = layoutTestUtils.text; var texts = layoutTestUtils.texts; var textSizes = layoutTestUtils.textSizes;