Skip to content

Commit

Permalink
Merge pull request #4374 from Methuselah96/add-prettify-script
Browse files Browse the repository at this point in the history
Add npm scripts to run Prettier
  • Loading branch information
JedWatson authored Jan 13, 2021
2 parents 500398d + 244fa36 commit 8c3de14
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
- run:
name: Running unit tests
command: |
yarn prettier --check "**/*.js"
yarn prettier:check
yarn lint
yarn flow check --flowconfig-name=.flowconfig-ci
yarn test:jest
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@
"build": "preconstruct build",
"watch": "preconstruct watch",
"coveralls": "cat coverage/lcov.info | coveralls",
"prettier:write": "prettier --write \"**/*.js\"",
"prettier:check": "prettier --check \"**/*.js\"",
"lint": "eslint .",
"start": "cd docs && yarn start",
"build:docs": "cd docs && yarn build:docs",
Expand Down

0 comments on commit 8c3de14

Please sign in to comment.