Merge pull request #93 from jxom/create-script-for-checks-in-ci

Create script for checks (prettier, lint, flow) in CI
This commit is contained in:
Brian Vaughn
2017-10-09 14:35:06 -07:00
committed by GitHub
2 changed files with 11 additions and 1 deletions

View File

@@ -1,7 +1,15 @@
{
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"plugins": [
"prettier",
"react"
],
"parser": "babel-eslint",
}
"env": {
"node": true,
"browser": true
}
}

View File

@@ -69,10 +69,12 @@
"scripts": {
"build": "gatsby build",
"check-all": "yarn prettier && 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",
"prettier": "prettier --config .prettierrc --write '{flow-typed,plugins,src}/**/*.js'",
"prettier:diff": "prettier --config .prettierrc --list-different '{flow-typed,plugins,src}/**/*.js'",
"reset": "rimraf ./.cache"
},
"devDependencies": {