summaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authorBoHong Li2017-03-08 18:45:51 +0800
committerBoHong Li2017-03-08 18:45:51 +0800
commit4889e9732d2458d60e2a079d3e54e128f6ce1b53 (patch)
tree7c867068ca17d7545ebbe10910d95abe3d19f1f9 /package.json
parent8f1c97f4a476ff6534ff1e809ed748cf92ba9288 (diff)
Use JavaScript Standard Style
Introduce JavaScript Standard Style as project style rule, and fixed all fail on backend code.
Diffstat (limited to 'package.json')
-rw-r--r--package.json9
1 files changed, 8 insertions, 1 deletions
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"
+ ]
}
}