Skip to content
This repository was archived by the owner on Oct 22, 2024. It is now read-only.

Commit fab6276

Browse files
committed
test: add markdown files to prettier scope
Updates commands to catch when Markdown is malformed. Refs: serverless#471 (review) Signed-off-by: Mike Fiedler <[email protected]>
1 parent f304b52 commit fab6276

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@
3838
"main": "index.js",
3939
"bin": {},
4040
"scripts": {
41-
"ci:lint": "eslint *.js lib/*.js --format junit --output-file ~/reports/eslint.xml && prettier -c index.js lib/*.js",
41+
"ci:lint": "eslint *.js lib/*.js --format junit --output-file ~/reports/eslint.xml && prettier -c '{.,lib}/*.{js,md}'",
4242
"test": "node test.js",
43-
"lint": "eslint *.js lib/*.js && prettier -l index.js lib/*.js || (echo need formatting ; exit 1)",
44-
"format": "prettier --write index.js lib/*.js test.js"
43+
"lint": "eslint *.js lib/*.js && prettier -c '{.,lib}/*.{js,md}'",
44+
"format": "prettier --write '{.,lib}/*.{js,md}'"
4545
},
4646
"devDependencies": {
4747
"eslint": "^5.16.0",

0 commit comments

Comments
 (0)