From a38cfd895300b8a8a58b5538e2f775b2aab59209 Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Mon, 31 Oct 2016 16:20:49 +0100 Subject: [PATCH] Add lint and travis --- .travis.yml | 7 +++++++ package.json | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..f84cb330 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,7 @@ +language: node_js +node_js: + - "4" + - "6" + +script: + npm run lint diff --git a/package.json b/package.json index 1adbb936..b897a4cd 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "scripts": { "start": "electron src", "build": "rm -rf dist && babel src -d dist --copy-files && ln -s ../node_modules dist/ && ln -s ../package.json ./dist/", - "package": "electron-packager dist LosslessCut --out=package --asar --overwrite --all --version 1.3.8" + "package": "electron-packager dist LosslessCut --out=package --asar --overwrite --all --version 1.3.8", + "lint": "eslint ." }, "author": { "name": "Mikael Finstad", @@ -21,6 +22,7 @@ "electron-prebuilt-compile": "^1.4.4", "eslint": "^3.8.0", "eslint-config-airbnb": "^12.0.0", + "eslint-plugin-import": "^1.16.0", "eslint-plugin-jsx-a11y": "^2.2.3", "eslint-plugin-react": "^6.4.1" },