From 5a96b1da0336ec8ad85b59296896a7fcd501c7e9 Mon Sep 17 00:00:00 2001 From: jxom Date: Tue, 10 Oct 2017 08:22:12 +1100 Subject: [PATCH] Rename check-all:verbose to ci-check, add some useful eslint config --- .eslintrc | 10 +++++++++- package.json | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.eslintrc b/.eslintrc index 78354d1e..28d87f00 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,7 +1,15 @@ { + "extends": [ + "eslint:recommended", + "plugin:react/recommended" + ], "plugins": [ "prettier", "react" ], "parser": "babel-eslint", -} \ No newline at end of file + "env": { + "node": true, + "browser": true + } +} diff --git a/package.json b/package.json index 8c18ca1b..8541b89c 100644 --- a/package.json +++ b/package.json @@ -69,7 +69,7 @@ "scripts": { "build": "gatsby build", "check-all": "yarn prettier && yarn lint && yarn flow", - "check-all:verbose": "yarn prettier:diff && yarn lint && yarn flow", + "ci-check": "yarn prettier:diff && yarn lint && yarn flow", "dev": "gatsby develop -H 0.0.0.0", "lint": "eslint .", "netlify": "yarn install && yarn build",