diff --git a/.eslintignore b/.eslintignore index 35167ba45d4..d6a54b4826e 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,4 +1,5 @@ node_modules/**/* +dist/**/* scripts/analytics/google.js scripts/plugins/* scripts/ace/themes/theme-atom_dark.js diff --git a/docs/development.md b/docs/development.md index 426d414a2fb..94bdf92a2f7 100644 --- a/docs/development.md +++ b/docs/development.md @@ -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 diff --git a/scripts/directives/tryoperation.js b/scripts/directives/tryoperation.js index d35ee7310ce..cdb31ffa2ee 100644 --- a/scripts/directives/tryoperation.js +++ b/scripts/directives/tryoperation.js @@ -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 @@ -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. @@ -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 @@ -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 diff --git a/server.js b/server.js index 0dfa403a4cc..62370eb4639 100644 --- a/server.js +++ b/server.js @@ -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'; diff --git a/webpack.config.js b/webpack.config.js index c4bdee5a309..88fa4be0cb1 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -72,4 +72,4 @@ if (argv.production) { config.plugins.unshift(new NgAnnotatePlugin({add: true})); } -module.exports = config; \ No newline at end of file +module.exports = config;