Skip to content

Commit

Permalink
Prettier pre-commit stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
jamieparkinson committed Mar 9, 2023
1 parent e56930f commit d28a7e7
Show file tree
Hide file tree
Showing 10 changed files with 4,325 additions and 12 deletions.
2 changes: 0 additions & 2 deletions .gitattributes

This file was deleted.

1 change: 0 additions & 1 deletion .gitbook.yml

This file was deleted.

5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@
yarn-error.log*
npm-debug.log
node_modules/
.DS_Store
.DS_Store

# JetBrains IDEs
.idea
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname "$0")/_/husky.sh"

yarn lint-staged
1 change: 1 addition & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
5 changes: 0 additions & 5 deletions CODEOWNERS

This file was deleted.

3 changes: 0 additions & 3 deletions api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,8 @@
"@types/node": "^18.11.9",
"@types/node-fetch": "^2.6.2",
"@types/supertest": "^2.0.12",
"husky": "^8.0.2",
"jest": "^29.3.1",
"lint-staged": "^13.0.3",
"nodemon": "^2.0.20",
"prettier": "^2.7.1",
"supertest": "^6.3.1",
"ts-jest": "^29.0.3"
}
Expand Down
23 changes: 23 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "@weco/content-api",
"version": "0.1.0",
"description": "APIs for Wellcome Collection content",
"repository": "[email protected]:wellcomecollection/content-api.git",
"author": "[email protected]",
"license": "MIT",
"private": true,
"workspaces": [
"api"
],
"scripts": {
"prepare": "husky install"
},
"devDependencies": {
"husky": "^8.0.3",
"lint-staged": "^13.1.2",
"prettier": "^2.8.4"
},
"lint-staged": {
"**/*": "prettier --write --ignore-unknown"
}
}
Loading

0 comments on commit d28a7e7

Please sign in to comment.