diff --git a/.jshintrc b/.jshintrc index 5bbc9db..a80a135 100644 --- a/.jshintrc +++ b/.jshintrc @@ -16,5 +16,13 @@ "loopfunc": true, "bitwise": false, - "browser": true + "browser": true, + + "globals": { + "describe": false, + "beforeEach": false, + "it": false, + "expect": false + } + } diff --git a/package.json b/package.json index 852c865..e437c44 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "grunt-contrib-concat": "~0.5.0", "grunt-contrib-cssmin": "^0.10.0", "grunt-contrib-jasmine": "~0.8.0", - "grunt-contrib-jshint": "~0.7.1", + "grunt-contrib-jshint": "~0.10.0", "grunt-contrib-uglify": "~0.4.0", "grunt-contrib-watch": "^0.6.1", "load-grunt-tasks": "~0.2.0" diff --git a/spec/api.data-spec.js b/spec/api.data-spec.js index 2e7bd25..ba26e6a 100644 --- a/spec/api.data-spec.js +++ b/spec/api.data-spec.js @@ -1,7 +1,3 @@ -var describe = window.describe, - expect = window.expect, - it = window.it, - beforeEach = window.beforeEach; describe('c3 api data', function () { 'use strict'; diff --git a/spec/api.focus-spec.js b/spec/api.focus-spec.js index effa228..3f586f8 100644 --- a/spec/api.focus-spec.js +++ b/spec/api.focus-spec.js @@ -1,7 +1,3 @@ -var describe = window.describe, - expect = window.expect, - it = window.it, - beforeEach = window.beforeEach; describe('c3 api load', function () { 'use strict'; diff --git a/spec/api.grid-spec.js b/spec/api.grid-spec.js index 605cf4d..70938e1 100644 --- a/spec/api.grid-spec.js +++ b/spec/api.grid-spec.js @@ -1,7 +1,3 @@ -var describe = window.describe, - expect = window.expect, - it = window.it, - beforeEach = window.beforeEach; describe('c3 api grid', function () { 'use strict'; diff --git a/spec/api.load-spec.js b/spec/api.load-spec.js index 20193b7..251c3a6 100644 --- a/spec/api.load-spec.js +++ b/spec/api.load-spec.js @@ -1,7 +1,3 @@ -var describe = window.describe, - expect = window.expect, - it = window.it, - beforeEach = window.beforeEach; describe('c3 api load', function () { 'use strict'; diff --git a/spec/api.zoom-spec.js b/spec/api.zoom-spec.js index bab4814..a315acc 100644 --- a/spec/api.zoom-spec.js +++ b/spec/api.zoom-spec.js @@ -1,7 +1,3 @@ -var describe = window.describe, - expect = window.expect, - it = window.it, - beforeEach = window.beforeEach; describe('c3 api zoom', function () { 'use strict'; diff --git a/spec/arc-spec.js b/spec/arc-spec.js index 3a74ee9..74133e8 100644 --- a/spec/arc-spec.js +++ b/spec/arc-spec.js @@ -1,7 +1,3 @@ -var describe = window.describe, - expect = window.expect, - it = window.it, - beforeEach = window.beforeEach; describe('c3 chart axis', function () { 'use strict'; diff --git a/spec/axis-spec.js b/spec/axis-spec.js index df5d03f..f28fe69 100644 --- a/spec/axis-spec.js +++ b/spec/axis-spec.js @@ -1,7 +1,3 @@ -var describe = window.describe, - expect = window.expect, - it = window.it, - beforeEach = window.beforeEach; describe('c3 chart axis', function () { 'use strict'; diff --git a/spec/c3-spec.js b/spec/c3-spec.js index c2455b0..2567c7e 100644 --- a/spec/c3-spec.js +++ b/spec/c3-spec.js @@ -1,6 +1,3 @@ -var describe = window.describe, - expect = window.expect, - it = window.it; describe('c3', function () { 'use strict'; diff --git a/spec/class-spec.js b/spec/class-spec.js index 86b54e1..d53e17b 100644 --- a/spec/class-spec.js +++ b/spec/class-spec.js @@ -1,7 +1,3 @@ -var describe = window.describe, - expect = window.expect, - it = window.it, - beforeEach = window.beforeEach; describe('c3 chart class', function () { 'use strict'; diff --git a/spec/core-spec.js b/spec/core-spec.js index 662a1a7..88d759b 100644 --- a/spec/core-spec.js +++ b/spec/core-spec.js @@ -1,7 +1,3 @@ -var describe = window.describe, - expect = window.expect, - it = window.it, - beforeEach = window.beforeEach; describe('c3 chart', function () { 'use strict'; diff --git a/spec/data-spec.js b/spec/data-spec.js index 1a03a87..0ee28ba 100644 --- a/spec/data-spec.js +++ b/spec/data-spec.js @@ -1,7 +1,3 @@ -var describe = window.describe, - expect = window.expect, - it = window.it, - beforeEach = window.beforeEach; describe('c3 chart data', function () { 'use strict'; diff --git a/spec/domain-spec.js b/spec/domain-spec.js index 3c4e7c0..56ebd78 100644 --- a/spec/domain-spec.js +++ b/spec/domain-spec.js @@ -1,7 +1,3 @@ -var describe = window.describe, - expect = window.expect, - it = window.it, - beforeEach = window.beforeEach; describe('c3 chart domain', function () { 'use strict'; diff --git a/spec/grid-spec.js b/spec/grid-spec.js index 92163e0..046b1e1 100644 --- a/spec/grid-spec.js +++ b/spec/grid-spec.js @@ -1,7 +1,3 @@ -var describe = window.describe, - expect = window.expect, - it = window.it, - beforeEach = window.beforeEach; describe('c3 chart grid', function () { 'use strict'; diff --git a/spec/interaction-spec.js b/spec/interaction-spec.js index 68d2726..a5c07f1 100644 --- a/spec/interaction-spec.js +++ b/spec/interaction-spec.js @@ -1,7 +1,3 @@ -var describe = window.describe, - expect = window.expect, - it = window.it, - beforeEach = window.beforeEach; describe('c3 chart interaction', function () { 'use strict'; diff --git a/spec/legend-spec.js b/spec/legend-spec.js index 8a1ed92..6272e42 100644 --- a/spec/legend-spec.js +++ b/spec/legend-spec.js @@ -1,7 +1,3 @@ -var describe = window.describe, - expect = window.expect, - it = window.it, - beforeEach = window.beforeEach; describe('c3 chart legend', function () { 'use strict'; diff --git a/spec/shape.bar-spec.js b/spec/shape.bar-spec.js index 7babc1e..9f15328 100644 --- a/spec/shape.bar-spec.js +++ b/spec/shape.bar-spec.js @@ -1,7 +1,3 @@ -var describe = window.describe, - expect = window.expect, - it = window.it, - beforeEach = window.beforeEach; var setMouseEvent = window.setMouseEvent; diff --git a/spec/shape.line-spec.js b/spec/shape.line-spec.js index 40c1fa7..65f6282 100644 --- a/spec/shape.line-spec.js +++ b/spec/shape.line-spec.js @@ -1,7 +1,3 @@ -var describe = window.describe, - expect = window.expect, - it = window.it, - beforeEach = window.beforeEach; describe('c3 chart shape line', function () { 'use strict'; diff --git a/spec/tooltip-spec.js b/spec/tooltip-spec.js index ab88ab4..838496e 100644 --- a/spec/tooltip-spec.js +++ b/spec/tooltip-spec.js @@ -1,9 +1,5 @@ -var describe = window.describe, - expect = window.expect, - it = window.it, - jasmine = window.jasmine, - beforeAll = window.beforeAll, - beforeEach = window.beforeEach; +var jasmine = window.jasmine, + beforeAll = window.beforeAll; describe('c3 chart tooltip', function () { 'use strict'; diff --git a/spec/type-spec.js b/spec/type-spec.js index 2661b17..c49a916 100644 --- a/spec/type-spec.js +++ b/spec/type-spec.js @@ -1,7 +1,3 @@ -var describe = window.describe, - expect = window.expect, - it = window.it, - beforeEach = window.beforeEach; describe('c3 chart types', function () { 'use strict'; diff --git a/spec/zoom-spec.js b/spec/zoom-spec.js index 060769c..121add3 100644 --- a/spec/zoom-spec.js +++ b/spec/zoom-spec.js @@ -1,7 +1,3 @@ -var describe = window.describe, - expect = window.expect, - it = window.it, - beforeEach = window.beforeEach; describe('c3 chart zoom', function () { 'use strict';