Fix JSHint issues

This commit is contained in:
Mohsen Azimi
2015-03-23 16:00:43 -07:00
parent 93c18d59b8
commit b58eee10e7
6 changed files with 8 additions and 11 deletions

View File

@@ -17,6 +17,7 @@
"strict": true, "strict": true,
"trailing": true, "trailing": true,
"smarttabs": true, "smarttabs": true,
"validthis": true,
"globals": { "globals": {
// Libraries // Libraries
@@ -29,6 +30,7 @@
"SwaggerClient": false, "SwaggerClient": false,
"hljs": false, "hljs": false,
"SwaggerUi": false, "SwaggerUi": false,
"define": false,
// Global object // Global object
// TODO: remove these // TODO: remove these

View File

@@ -7,7 +7,3 @@ install:
- sh -e /etc/init.d/xvfb start - sh -e /etc/init.d/xvfb start
- npm i -g jshint - npm i -g jshint
- npm install - npm install
script:
- jshint .
- npm test

3
dist/swagger-ui.js vendored
View File

@@ -6,7 +6,7 @@
*/ */
(function(){'use strict'; (function(){'use strict';
var SwaggerUi = Backbone.Router.extend({ window.SwaggerUi = Backbone.Router.extend({
dom_id: 'swagger_ui', dom_id: 'swagger_ui',
@@ -201,7 +201,6 @@ var SwaggerUi = Backbone.Router.extend({
}); });
window.SwaggerUi = SwaggerUi;
window.SwaggerUi.Views = {}; window.SwaggerUi.Views = {};
// don't break backward compatibility with previous versions and warn users to upgrade their code // don't break backward compatibility with previous versions and warn users to upgrade their code

File diff suppressed because one or more lines are too long

View File

@@ -8,6 +8,7 @@
"scripts": { "scripts": {
"build": "./node_modules/gulp/bin/gulp.js;", "build": "./node_modules/gulp/bin/gulp.js;",
"serve": "./node_modules/gulp/bin/gulp.js serve;", "serve": "./node_modules/gulp/bin/gulp.js serve;",
"pretest": "jshint .",
"test": "./node_modules/gulp/bin/gulp.js; ./node_modules/mocha/bin/mocha" "test": "./node_modules/gulp/bin/gulp.js; ./node_modules/mocha/bin/mocha"
}, },
"repository": { "repository": {

View File

@@ -1,6 +1,6 @@
'use strict'; 'use strict';
var SwaggerUi = Backbone.Router.extend({ window.SwaggerUi = Backbone.Router.extend({
dom_id: 'swagger_ui', dom_id: 'swagger_ui',
@@ -195,7 +195,6 @@ var SwaggerUi = Backbone.Router.extend({
}); });
window.SwaggerUi = SwaggerUi;
window.SwaggerUi.Views = {}; window.SwaggerUi.Views = {};
// don't break backward compatibility with previous versions and warn users to upgrade their code // don't break backward compatibility with previous versions and warn users to upgrade their code