diff --git a/.eslintrc b/.eslintrc index a655538f7168602535c3c03d79f6ee8e415573e9..d3a7a2e1f924ad48169b5580f6731ead68d8613c 100755 --- a/.eslintrc +++ b/.eslintrc @@ -1,6 +1,11 @@ { "parser": "babel-eslint", "extends": "airbnb", + "env": { + "browser": true, + "node": true, + "es6": true + }, "rules": { "generator-star-spacing": [0], "consistent-return": [0], diff --git a/README.md b/README.md index d42deada6f5a812f398c12cc1bd0267b5258046d..25a73874d3c916f9c784444a1894c3994c52412a 100644 --- a/README.md +++ b/README.md @@ -1 +1,3 @@ # test2 + +[![](https://img.shields.io/travis/ant-design/test2.svg?style=flat-square)](https://travis-ci.org/ant-design/test2) diff --git a/package.json b/package.json index 834aa1286cc1d944f886b464d1bf74073a99754e..1a5d997301515cf31a0f25842ce0131e36efb666 100755 --- a/package.json +++ b/package.json @@ -4,7 +4,8 @@ "scripts": { "start": "roadhog server", "build": "roadhog build", - "lint": "eslint --ext .js src test", + "lint": "eslint --ext .js src test mock", + "test": "lint", "precommit": "npm run lint" }, "dependencies": {