diff options
author | eug-vs <eug-vs@keemail.me> | 2020-03-21 15:10:15 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-03-21 15:10:15 +0300 |
commit | ef3f55d8396218a41b48c4ed10a5e515ac320e5c (patch) | |
tree | 80ac671c48755b1e9d462cbc6c003204ed0c8774 | |
parent | f3a684937565f3bd94034f3389aa95fea908f0c4 (diff) | |
download | chrono-cube-ui-ef3f55d8396218a41b48c4ed10a5e515ac320e5c.tar.gz |
ci: lint code and check types of every commit
-rw-r--r-- | .circleci/config.yml | 4 | ||||
-rw-r--r-- | 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" |