mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 20:23:08 +00:00
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:
10
.eslintrc
10
.eslintrc
@@ -1,7 +1,15 @@
|
||||
{
|
||||
"extends": [
|
||||
"eslint:recommended",
|
||||
"plugin:react/recommended"
|
||||
],
|
||||
"plugins": [
|
||||
"prettier",
|
||||
"react"
|
||||
],
|
||||
"parser": "babel-eslint",
|
||||
}
|
||||
"env": {
|
||||
"node": true,
|
||||
"browser": true
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user