Skip to content

Commit

Permalink
chore: configur eprettier correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
wheresrhys committed Jul 24, 2024
1 parent 0dfd6c3 commit 32f20fe
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CHANGELOG.md
2 changes: 1 addition & 1 deletion docs/docs/@fetch-mock/core/more-routing-methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sidebar_label: More routing methods

# More routing methods

These methods allow defining routes for common use cases while avoiding writing hard to read configuration objects. They all return the fetchMock instance, and are therefor chainable. Unless noted otherwise, each of the methods below have the same signature as `.route()`.
These methods allow defining routes for common use cases while avoiding writing hard to read configuration objects. They all return the fetchMock instance, and are therefor chainable. Unless noted otherwise, each of the methods below have the same signature as `.route()`.

## .catch()

Expand Down
3 changes: 2 additions & 1 deletion docs/docs/@fetch-mock/core/route/matcher.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ When the `express:` keyword is used in a string matcher, it can be combined with
}
```

The values of express parameters are made available in the `expressParams` property when
The values of express parameters are made available in the `expressParams` property when

- [Inspecting call history](/fetch-mock/docs/@fetch-mock/core/CallHistory#calllog-schema)
- [Using a function to construct a response](/fetch-mock/docs/@fetch-mock/core/route/response#function)

Expand Down
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@
"docs"
],
"scripts": {
"lint": "eslint --cache --fix --ext .js,.cjs . && prettier --cache --write *.md docs/**/*.md docs/**/**/*.md",
"lint:ci": "eslint --ext .js,.cjs . && prettier *.md docs/**/*.md docs/**/**/*.md",
"lint": "eslint --cache --fix --ext .js,.cjs .",
"lint:ci": "eslint --ext .js,.cjs .",
"prettier": "prettier --cache --write *.md \"./**/*.md\"",
"prettier:ci": "prettier *.md \"./**/*.md\"",
"types:check": "tsc --project ./jsconfig.json",
"types:lint": "dtslint --expectOnly packages/fetch-mock/types",
"prepare": "husky || echo \"husky not available\"",
Expand Down Expand Up @@ -72,6 +74,9 @@
"lint-staged": {
"**/*.js": [
"npm run lint && npm run types:check"
],
"**/*.md":[
"npm run prettier"
]
}
}

0 comments on commit 32f20fe

Please sign in to comment.