Fix JSHint issues
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -6,8 +6,4 @@ install:
|
|||||||
- export DISPLAY=:99.0
|
- export DISPLAY=:99.0
|
||||||
- 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
3
dist/swagger-ui.js
vendored
@@ -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
|
||||||
|
|||||||
4
dist/swagger-ui.min.js
vendored
4
dist/swagger-ui.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -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": {
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user