diff --git a/package.json b/package.json index e4f4e484b..793bdeee6 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,8 @@ "dev": "npm run bootstrap && npm run build:file", "builddocs": "webpack --progress --hide-modules --config build/webpack.config.js && set NODE_ENV=production webpack --progress --hide-modules --config build/webpack.config.js", "docs": "npm run dev && webpack-dev-server --inline --hot --config build/webpack.config.js", - "clean": "rimraf lib && rimraf packages/*/lib" + "clean": "rimraf lib && rimraf packages/*/lib", + "lint": "eslint src/**/*.js packages/**/*.{js,vue} --quiet" }, "repository": { "type": "git", @@ -50,7 +51,7 @@ "cp-cli": "^1.0.2", "cross-env": "^3.1.3", "css-loader": "^0.24.0", - "eslint": "^3.10.2", + "eslint": "^3.15.0", "eslint-config-standard": "^5.1.0", "eslint-friendly-formatter": "^2.0.5", "eslint-loader": "^1.3.0", diff --git a/packages/switch/src/switch.vue b/packages/switch/src/switch.vue index cb92c5fda..9ae635efc 100644 --- a/packages/switch/src/switch.vue +++ b/packages/switch/src/switch.vue @@ -1,7 +1,7 @@