Widened scope of CI eslint to all JavaScript files

This commit is contained in:
Colin Eberhardt
2015-10-05 13:21:19 +01:00
parent c33e255182
commit 45f62c424c
3 changed files with 2 additions and 4 deletions

View File

@@ -1,7 +1,6 @@
'use strict'; 'use strict';
module.exports = function(grunt) { module.exports = function(grunt) {
var fs = require('fs');
var path = require('path'); var path = require('path');
var isWindows = (/^win/).test(process.platform); var isWindows = (/^win/).test(process.platform);
@@ -56,7 +55,7 @@ module.exports = function(grunt) {
options: { options: {
configFile: '.eslintrc' configFile: '.eslintrc'
}, },
target: ['<%= config.srcFolder %>/*.js'] target: ['<%= config.srcFolder %>/**/*.js', './Gruntfile.js']
}, },
includereplace: { includereplace: {

View File

@@ -98,7 +98,7 @@ describe('Random layout', function() {
} }
function checkRandomLayout(i, node) { 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))) { if (JSON.stringify(computeLayout(node)) !== JSON.stringify(computeDOMLayout(node))) {
node = reduceTest(node); node = reduceTest(node);
} }

View File

@@ -11,7 +11,6 @@
var testLayout = layoutTestUtils.testLayout; var testLayout = layoutTestUtils.testLayout;
var testLayoutAgainstDomOnly = layoutTestUtils.testLayoutAgainstDomOnly; var testLayoutAgainstDomOnly = layoutTestUtils.testLayoutAgainstDomOnly;
var testFillNodes = layoutTestUtils.testFillNodes; var testFillNodes = layoutTestUtils.testFillNodes;
var testExtractNodes = layoutTestUtils.testExtractNodes;
var text = layoutTestUtils.text; var text = layoutTestUtils.text;
var texts = layoutTestUtils.texts; var texts = layoutTestUtils.texts;
var textSizes = layoutTestUtils.textSizes; var textSizes = layoutTestUtils.textSizes;