From ef3f55d8396218a41b48c4ed10a5e515ac320e5c Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sat, 21 Mar 2020 15:10:15 +0300 Subject: ci: lint code and check types of every commit --- .circleci/config.yml | 4 ++-- package.json | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 76027f7..fef5ed0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -24,6 +24,6 @@ jobs: key: v1-dependencies-{{ checksum "package.json" }} - run: - name: Test code syntax with eslint - command: npx eslint . + name: Check types and lint code + command: npm test diff --git a/package.json b/package.json index 80fb870..65fcc4e 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "scripts": { "start": "react-scripts start", "lint": "eslint . --ext ts,tsx --max-warnings 0", + "test": "npm run lint && tsc", "build": "react-scripts build", "predeploy": "npm run build", "deploy": "gh-pages -d build" -- cgit v1.2.3