Don't format md files by default

Since markdown files can be easily edited in the Github UI by non-tech
people, we shouldn't fail the CI when they are not formatted with
Prettier.

We still want to format them "manually" form time to time, so a new
command `yarn run format-docs` is added.
This commit is contained in:
Kimmo Puputti 2017-12-11 15:28:56 +02:00
parent 56c23a107b
commit 2983b4ecb1

View file

@ -57,8 +57,9 @@
"clean": "rm -rf build/*",
"dev": "sharetribe-scripts start",
"build": "sharetribe-scripts build",
"format": "prettier --write '**/*.{js,css,md}'",
"format-ci": "prettier --list-different '**/*.{js,css,md}'",
"format": "prettier --write '**/*.{js,css}'",
"format-ci": "prettier --list-different '**/*.{js,css}'",
"format-docs": "prettier --write 'docs/**/*.md'",
"test": "sharetribe-scripts test --env=jsdom",
"test-ci": "sharetribe-scripts test --env=jsdom --runInBand",
"eject": "sharetribe-scripts eject",