From 4889e9732d2458d60e2a079d3e54e128f6ce1b53 Mon Sep 17 00:00:00 2001 From: BoHong Li Date: Wed, 8 Mar 2017 18:45:51 +0800 Subject: Use JavaScript Standard Style Introduce JavaScript Standard Style as project style rule, and fixed all fail on backend code. --- package.json | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'package.json') diff --git a/package.json b/package.json index a179d93e..2012dbdf 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "app.js", "license": "MIT", "scripts": { - "test": "npm run-script lint", + "test": "node ./node_modules/standard/bin/cmd.js && npm run-script lint", "lint": "eslint .", "dev": "webpack --config webpack.config.js --progress --colors --watch", "build": "webpack --config webpack.production.js --progress --colors", @@ -165,8 +165,15 @@ "optimize-css-assets-webpack-plugin": "^1.3.0", "script-loader": "^0.7.0", "style-loader": "^0.13.1", + "standard": "^9.0.1", "url-loader": "^0.5.7", "webpack": "^1.14.0", "webpack-parallel-uglify-plugin": "^0.2.0" + }, + "standard": { + "ignore": [ + "lib/ot", + "public/vendor" + ] } } -- cgit v1.2.3 From 6cf06837f8453a83e12e9f72050b1d7e995f027e Mon Sep 17 00:00:00 2001 From: BoHong Li Date: Mon, 13 Mar 2017 02:23:58 +0800 Subject: Remove eslint 1. Remove eslint , bacause we use JavaScript Standard Style. 2. Add lts/boron version to travis CI, web use it in docker version Signed-off-by: BoHong Li --- package.json | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'package.json') diff --git a/package.json b/package.json index 2012dbdf..05789321 100644 --- a/package.json +++ b/package.json @@ -5,8 +5,8 @@ "main": "app.js", "license": "MIT", "scripts": { - "test": "node ./node_modules/standard/bin/cmd.js && npm run-script lint", - "lint": "eslint .", + "test": "npm run-script standard", + "standard": "node ./node_modules/standard/bin/cmd.js", "dev": "webpack --config webpack.config.js --progress --colors --watch", "build": "webpack --config webpack.production.js --progress --colors", "postinstall": "bin/heroku", @@ -152,7 +152,6 @@ "copy-webpack-plugin": "^4.0.1", "css-loader": "^0.26.1", "ejs-loader": "^0.3.0", - "eslint": "^3.15.0", "exports-loader": "^0.6.3", "expose-loader": "^0.7.1", "extract-text-webpack-plugin": "^1.0.1", -- cgit v1.2.3