From 91aca7a79a42cfd830eca6adf8ae097f9e556998 Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 29 Aug 2017 12:03:16 +0800 Subject: [PATCH] Add travis test and badge close #1 --- .eslintrc | 5 +++++ README.md | 2 ++ package.json | 3 ++- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.eslintrc b/.eslintrc index a655538f..d3a7a2e1 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 d42deada..25a73874 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 834aa128..1a5d9973 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": { -- GitLab