Skip to content

Commit 8f50d04

Browse files
authored
Merge pull request #93 from jxom/create-script-for-checks-in-ci
Create script for checks (prettier, lint, flow) in CI
2 parents 580706b + 5a96b1d commit 8f50d04

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.eslintrc

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
{
2+
"extends": [
3+
"eslint:recommended",
4+
"plugin:react/recommended"
5+
],
26
"plugins": [
37
"prettier",
48
"react"
59
],
610
"parser": "babel-eslint",
7-
}
11+
"env": {
12+
"node": true,
13+
"browser": true
14+
}
15+
}

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,12 @@
6969
"scripts": {
7070
"build": "gatsby build",
7171
"check-all": "yarn prettier && yarn lint && yarn flow",
72+
"ci-check": "yarn prettier:diff && yarn lint && yarn flow",
7273
"dev": "gatsby develop -H 0.0.0.0",
7374
"lint": "eslint .",
7475
"netlify": "yarn install && yarn build",
7576
"prettier": "prettier --config .prettierrc --write '{flow-typed,plugins,src}/**/*.js'",
77+
"prettier:diff": "prettier --config .prettierrc --list-different '{flow-typed,plugins,src}/**/*.js'",
7678
"reset": "rimraf ./.cache"
7779
},
7880
"devDependencies": {

0 commit comments

Comments
 (0)