Browse Source

Merge pull request #905 from kt3k/feautre/update-jshint

Added globals settings in .jshintrc
pull/938/head
Masayuki Tanaka 10 years ago
parent
commit
b11f6ba7b3
  1. 10
      .jshintrc
  2. 2
      package.json
  3. 4
      spec/api.data-spec.js
  4. 4
      spec/api.focus-spec.js
  5. 4
      spec/api.grid-spec.js
  6. 4
      spec/api.load-spec.js
  7. 4
      spec/api.zoom-spec.js
  8. 4
      spec/arc-spec.js
  9. 4
      spec/axis-spec.js
  10. 3
      spec/c3-spec.js
  11. 4
      spec/class-spec.js
  12. 4
      spec/core-spec.js
  13. 4
      spec/data-spec.js
  14. 4
      spec/domain-spec.js
  15. 4
      spec/grid-spec.js
  16. 4
      spec/interaction-spec.js
  17. 4
      spec/legend-spec.js
  18. 4
      spec/shape.bar-spec.js
  19. 4
      spec/shape.line-spec.js
  20. 8
      spec/tooltip-spec.js
  21. 4
      spec/type-spec.js
  22. 4
      spec/zoom-spec.js

10
.jshintrc

@ -16,5 +16,13 @@
"loopfunc": true,
"bitwise": false,
"browser": true
"browser": true,
"globals": {
"describe": false,
"beforeEach": false,
"it": false,
"expect": false
}
}

2
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"

4
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';

4
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';

4
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';

4
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';

4
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';

4
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';

4
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';

3
spec/c3-spec.js

@ -1,6 +1,3 @@
var describe = window.describe,
expect = window.expect,
it = window.it;
describe('c3', function () {
'use strict';

4
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';

4
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';

4
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';

4
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';

4
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';

4
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';

4
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';

4
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;

4
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';

8
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';

4
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';

4
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';

Loading…
Cancel
Save