From 2f8308d51bcb48d1ea48c4fb999736a412f3ac32 Mon Sep 17 00:00:00 2001 From: Denis Efremov Date: Thu, 11 Oct 2018 01:00:17 +0300 Subject: [PATCH 1/2] Added lint and lint fix commands. --- .travis.yml | 7 +++++++ package.json | 2 ++ 2 files changed, 9 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..18c0dfc --- /dev/null +++ b/.travis.yml @@ -0,0 +1,7 @@ +language: node_js +node_js: + - 8 + - 9 + - 10 +script: + - npm run lint diff --git a/package.json b/package.json index 3695677..4bb84db 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,8 @@ "main": "index.js", "scripts": { "start": "node index", + "lint": "./node_modules/.bin/eslint actions bot handlers plugins stores utils", + "lint:fix": "./node_modules/.bin/eslint --fix actions bot handlers plugins stores utils", "test": "echo \"Error: no test specified\" && exit 1" }, "repository": { From 8310af5ffbc0ed54eaaf52927f6351c1da5b1413 Mon Sep 17 00:00:00 2001 From: Denis Efremov Date: Thu, 11 Oct 2018 01:09:58 +0300 Subject: [PATCH 2/2] Removed deprecated setting --- .eslintrc.json | 3 --- 1 file changed, 3 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 260da65..52b4472 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,8 +1,5 @@ { "parserOptions": { - "ecmaFeatures": { - "experimentalObjectRestSpread": true - }, "ecmaVersion": 2017 }, "env": {