Skip to content

Commit 7c32ad8

Browse files
committed
chore: add prettier code format check to our lint script, and add a prettier script for manually formatting the whole code base
1 parent 9f8c3c9 commit 7c32ad8

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.prettierignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
CHANGELOG.md
2+
HISTORY.md
3+
lib/
4+
themes/
5+
_playwright-*/
6+
emoji-data.*

HISTORY.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!-- Historical history file (do not edit). -->
12

23
<a name="3.7.3"></a>
34
## [3.7.3](https://github.com/QingWei-Li/docsify/compare/v3.7.2...v3.7.3) (2017-05-22)

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,9 @@
4141
"docker:test:integration": "npm run docker:cli -- test:integration",
4242
"docker:test:unit": "npm run docker:cli -- test:unit",
4343
"docker:test": "npm run docker:cli -- test",
44+
"prettier": "prettier . --write",
4445
"lint:fix": "eslint . --fix",
45-
"lint": "eslint .",
46+
"lint": "prettier . --check && eslint .",
4647
"postinstall": "opencollective-postinstall",
4748
"prepare": "npm run build",
4849
"pub:next": "cross-env RELEASE_TAG=next sh build/release.sh",

0 commit comments

Comments
 (0)