Skip to content

Commit

Permalink
fix eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
saharj committed Apr 19, 2016
1 parent 0cb7889 commit 36ceccf
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions scripts/ace/snippets/swagger.snippet.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
SwaggerEditor.config(function($provide) {
var operationRegex = 'get|put|post|delete|options|head|patch';

/* eslint no-useless-escape: "off"*/
/**
* Makes an HTTP operation snippet's content based on operation name
*
Expand Down
3 changes: 2 additions & 1 deletion scripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ var angular = require('angular');

// These modules do not export their module name
// json-editor dependency is not in package.json of this package
require('angular-json-schema-form'); require('json-editor');
require('angular-json-schema-form');
require('json-editor');
require('ngstorage');
require('angular-ui-ace');

Expand Down
1 change: 1 addition & 0 deletions scripts/directives/tryoperation.js
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,7 @@ SwaggerEditor.controller('TryOperation', function($scope, formdataFilter,
var content = $scope.getRequestBody();

// get spec host or default host in the window. remove port from Host header
/* eslint no-useless-escape: "off"*/
var host = ($scope.specs.host || window.location.host).replace(/\:.+/, '');

// A list of default headers that will be included in the XHR call
Expand Down
1 change: 1 addition & 0 deletions scripts/services/backend.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ var angular = require('angular');
SwaggerEditor.service('Backend', function Backend($http, $q, defaults,
$rootScope, Builder, ExternalHooks, YAML) {
var changeListeners = {};
/* eslint no-useless-escape: "off"*/
var absoluteRegex = /^(\/|http(s)?\:\/\/)/; // starts with slash or http|https
var buffer = {};
var throttleTimeout = defaults.backendThrottle || 200;
Expand Down
1 change: 1 addition & 0 deletions scripts/services/keyword-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ SwaggerEditor.service('KeywordMap', function KeywordMap(defaults) {
not: String,

// jscs:disable
/* eslint no-useless-escape: "off"*/
'\$ref': String,
// jscs:enable

Expand Down
3 changes: 2 additions & 1 deletion test/unit/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
'use strict';

var angular = require('angular');
require('angular-json-schema-form'); require('json-editor');
require('angular-json-schema-form');
require('json-editor');
require('ngstorage');
require('angular-ui-ace');

Expand Down
1 change: 1 addition & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ var config = {
module: {
loaders: [
{
/* eslint no-useless-escape: "off"*/
test: '/\.js$/',
loader: 'eslint-loader',
exclude: 'node_modules/'
Expand Down

0 comments on commit 36ceccf

Please sign in to comment.