diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 00000000000..e69de29bb2d diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000000..f0bee5a422b --- /dev/null +++ b/.travis.yml @@ -0,0 +1,16 @@ +language: node_js + +node_js: + - "4" + - "5" + - "6" + - "stable" + +sudo: true + +before_script: + - export DISPLAY=:99.0 + - sh -e /etc/init.d/xvfb start + +script: + - npm run lint \ No newline at end of file diff --git a/package.json b/package.json index 90adcee6625..63937242a26 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "webpack-cli": "./bin/cli.js" }, "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "lint": "eslint ./lib" }, "dependencies": { "enhanced-resolve": "^3.0.2",