From 7f76c79319bf0817222fc88011fd870d97648963 Mon Sep 17 00:00:00 2001 From: Anike Arni Date: Tue, 7 Feb 2017 19:46:45 -0200 Subject: [#922] Adds eslint for react and es6 files --- web-ui/package.json | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'web-ui/package.json') diff --git a/web-ui/package.json b/web-ui/package.json index dba34e97..ab5d1b24 100644 --- a/web-ui/package.json +++ b/web-ui/package.json @@ -16,6 +16,11 @@ "css-loader": "^0.26.1", "dompurify": "^0.8.4", "enzyme": "^2.7.1", + "eslint": "^3.15.0", + "eslint-config-airbnb": "^14.1.0", + "eslint-plugin-import": "^2.2.0", + "eslint-plugin-jsx-a11y": "^4.0.0", + "eslint-plugin-react": "^6.9.0", "expect": "^1.20.2", "file-loader": "^0.10.0", "font-awesome": "^4.7.0", @@ -64,7 +69,7 @@ "webpack": "^1.14.0" }, "scripts": { - "test": "npm run jshint --silent && npm run build-statics --silent && npm run mocha-test && npm run karma-test", + "test": "npm run lint --silent && npm run build-statics --silent && npm run mocha-test && npm run karma-test", "mocha-test": "mocha-webpack --webpack-config webpack.test.config.js \"test/unit/**/*.spec.js\"", "mocha-watch": "mocha-webpack --watch --webpack-config webpack.test.config.js \"test/unit/**/*.spec.js\"", "karma-test": "karma start --single-run $GRUNT_OPTS", @@ -80,7 +85,9 @@ "build-prod": "npm run build-statics && webpack -p --config ./webpack.production.config.js", "build-js": "webpack --colors --progress", "build-js-watch": "webpack --colors --progress --watch", + "lint": "npm run jshint && npm run eslint", "jshint": "jshint --config=.jshintrc app test", + "eslint": "eslint src test/unit", "clean": "rm -rf dist/ app/js/generated/hbs/* app/css/*", "package": "PIXELATED_BUILD='package' npm run build-prod && npm run imagemin", "imagemin": "node config/imagemin.js", -- cgit v1.2.3