Skip to content

Commit

Permalink
feat: add prettier formatting check for markdown (#561)
Browse files Browse the repository at this point in the history
* feat: add docs prettier formatter to lint-docs step

* chore: ignore CHANGELOG.md

* chore: ignore fixture docs
  • Loading branch information
kanadgupta authored Aug 9, 2022
1 parent d58df63 commit 7db2e59
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
__tests__/__fixtures__/**/*.md
CHANGELOG.md
coverage/
dist/
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,12 @@
"build": "tsc",
"debug:bin": "ts-node src/cli.ts",
"lint": "eslint . bin/rdme bin/set-version-output --ext .js,.ts",
"lint-docs": "alex .",
"lint-docs": "alex . && npm run prettier",
"prebuild": "rm -rf dist/",
"prepack": "npm run build",
"pretest": "npm run lint && npm run lint-docs",
"prettier": "prettier --list-different --write \"./**/**.{js,ts}\"",
"prettier": "prettier --list-different \"./**/**.{md,js,ts}\"",
"prettier:write": "prettier --list-different --write \"./**/**.{md,js,ts}\"",
"release": "npx conventional-changelog-cli -i CHANGELOG.md -s",
"test": "jest --coverage"
},
Expand Down

0 comments on commit 7db2e59

Please sign in to comment.