Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
saharj committed Apr 6, 2016
1 parent 17a4a75 commit 6bf053d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules/**/*
dist/**/*
scripts/analytics/google.js
scripts/plugins/*
scripts/ace/themes/theme-atom_dark.js
2 changes: 1 addition & 1 deletion docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ sudo docker run -ti -p 8080:8080 swagger-editor
And open [http://localhost:8080](http://localhost:8080) in your browser

### Code Style
Code style is enforced by [JSCS (JavaScript Code Style)](https://github.com/jscs-dev/node-jscs) and [JSHint](http://jshint.com/). Build will fail if changes in code is not following code style guildlines.
Code style is enforced by ESLint. Build will fail if changes in code is not following code style guildlines.

### Testing
To run all tests run
Expand Down
8 changes: 4 additions & 4 deletions scripts/directives/tryoperation.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ SwaggerEditor.controller('TryOperation', function($scope, formdataFilter,
_.each(schema.properties, appendJSONEditorOptions);

return schema;
};
}

/*
* Makes the request schema to generate the form in the template
Expand Down Expand Up @@ -456,7 +456,7 @@ SwaggerEditor.controller('TryOperation', function($scope, formdataFilter,
return function filterParams(parameter) {
return parameter.in === type;
};
};
}

/*
* Used for generating a hash from array of parameters.
Expand Down Expand Up @@ -491,7 +491,7 @@ SwaggerEditor.controller('TryOperation', function($scope, formdataFilter,
hash[param.name] = $scope.requestModel.parameters[param.name];

return hash;
};
}

/*
* Generates the URL for this call based on all parameters and other
Expand Down Expand Up @@ -697,7 +697,7 @@ SwaggerEditor.controller('TryOperation', function($scope, formdataFilter,
// formData case
}
return formDataParams.reduce(hashifyParams, {});
};
}

/*
* Gets the request body based on current form data and other parameters
Expand Down
1 change: 0 additions & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
var webpack = require('webpack');
var WebpackDevServer = require('webpack-dev-server');
var config = require('./webpack.config');
var argv = require('minimist')(process.argv.slice(2));
var open = require('open');
var IP = '127.0.0.1';

Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ if (argv.production) {
config.plugins.unshift(new NgAnnotatePlugin({add: true}));
}

module.exports = config;
module.exports = config;

0 comments on commit 6bf053d

Please sign in to comment.