Skip to content

Commit 8b52eeb

Browse files
committed
Merge pull request #485 from XhmikosR/globals
Move global config to JSHint's configuration.
2 parents 9feb5f6 + 4576f9a commit 8b52eeb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+8
-92
lines changed

Gruntfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ module.exports = function(grunt) {
221221

222222
//Run the YUITest suite
223223
grunt.registerMultiTask("yuitest", "Run the YUITests for the project", function() {
224-
/*jshint evil:true, node: true */
224+
/*jshint evil:true, node:true*/
225225

226226
var start = Date.now();
227227
var YUITest = require("yuitest");

src/cli/rhino.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
/*
22
* CSSLint Rhino Command Line Interface
33
*/
4-
/*jshint rhino:true*/
5-
/*global cli, File*/
4+
5+
/* jshint rhino:true */
6+
/* global cli, File */
67

78
importPackage(java.io);
89

src/cli/wsh.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
/*
22
* Windows Script Host Command Line Interface
33
*/
4-
/*global ActiveXObject, WScript, Enumerator, cli*/
4+
55
//TODO: This file needs major cleanup!!!
66

7+
/* jshint wsh:true */
8+
/* global cli */
9+
710
var wshapi = (function(){
811
var fso = new ActiveXObject("Scripting.FileSystemObject");
912
var shell = WScript.CreateObject("WScript.Shell");

tests/all-rules.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
/*jshint loopfunc: true */
1212

1313
(function(){
14-
/*global YUITest, CSSLint*/
1514
var Assert = YUITest.Assert,
1615
suite = new YUITest.TestSuite("General Tests for all Rules"),
1716
rules = CSSLint.getRules(),

tests/core/CSSLint.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
(function(){
2-
3-
/*global YUITest, CSSLint*/
42
var Assert = YUITest.Assert;
53

64
YUITest.TestRunner.add(new YUITest.TestCase({

tests/core/Reporter.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
(function(){
2-
3-
/*global YUITest, CSSLint, Reporter*/
42
var Assert = YUITest.Assert;
53

64
YUITest.TestRunner.add(new YUITest.TestCase({

tests/formatters/checkstyle-xml.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
(function(){
2-
3-
/*global YUITest, CSSLint*/
42
var Assert = YUITest.Assert;
53

64
YUITest.TestRunner.add(new YUITest.TestCase({

tests/formatters/compact.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
(function(){
2-
3-
/*global YUITest, CSSLint*/
42
var Assert = YUITest.Assert;
53

64
YUITest.TestRunner.add(new YUITest.TestCase({

tests/formatters/csslint-xml.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
(function(){
2-
3-
/*global YUITest, CSSLint*/
42
var Assert = YUITest.Assert;
53

64
YUITest.TestRunner.add(new YUITest.TestCase({

tests/formatters/junit-xml.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
(function(){
2-
3-
/*global YUITest, CSSLint*/
42
var Assert = YUITest.Assert;
53

64
YUITest.TestRunner.add(new YUITest.TestCase({

0 commit comments

Comments
 (0)