aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.circleci/config.yml4
-rw-r--r--package.json1
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"