Skip to content

Commit

Permalink
chore: upgrade yarn v3 & husky v7
Browse files Browse the repository at this point in the history
  • Loading branch information
robmcguinness committed Feb 11, 2022
1 parent 094ffd8 commit 6c952c1
Show file tree
Hide file tree
Showing 9 changed files with 5,847 additions and 28 deletions.
23 changes: 11 additions & 12 deletions .eslintrc.json
@@ -1,14 +1,13 @@
{
"extends": ["eslint:recommended", "prettier"],
"env": {
"node": true,
"es6": true
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 8
},
"rules": {
"no-console": 0
}
"extends": ["eslint:recommended", "prettier"],
"env": {
"node": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 12
},
"rules": {
"no-console": 0
}
}
8 changes: 8 additions & 0 deletions .gitignore
Expand Up @@ -21,3 +21,11 @@ npm-debug.log
test/certs/server.csr
/.history
/package-lock.json

.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
4 changes: 4 additions & 0 deletions .husky/pre-commit
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn lint-staged
4 changes: 4 additions & 0 deletions .husky/pre-push
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn test
363 changes: 363 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

Large diffs are not rendered by default.

768 changes: 768 additions & 0 deletions .yarn/releases/yarn-3.1.1.cjs

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions .yarnrc.yml
@@ -0,0 +1,6 @@
plugins:
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: '@yarnpkg/plugin-interactive-tools'

yarnPath: .yarn/releases/yarn-3.1.1.cjs
nodeLinker: node-modules
28 changes: 12 additions & 16 deletions package.json
Expand Up @@ -37,9 +37,10 @@
"test:ts": "tsd",
"lint": "eslint .",
"test:cov:html": "lab -r html -o coverage.html",
"precommit": "npm test",
"postversion": "npm publish",
"postpublish": "git push origin --all; git push origin --tags"
"precommit": "yarn test",
"postversion": "yarn publish",
"postpublish": "git push origin --all; git push origin --tags",
"prepare": "is-ci || husky install"
},
"license": "MIT",
"engines": {
Expand Down Expand Up @@ -67,24 +68,24 @@
"@hapi/vision": "^6.0.0",
"@hapi/wreck": "^17.0.0",
"@types/hapi__hapi": "^20.0.7",
"babel-eslint": "^10.0.3",
"blipp": "^4.0.0",
"chalk": "^4.1.0",
"chalk": "^5.0.0",
"coveralls": "^3.0.2",
"eslint": "^7.24.0",
"eslint": "^8.8.0",
"eslint-config-prettier": "^8.2.0",
"good-squeeze": "^5.0.2",
"hapi-api-version": "^2.1.0",
"hapi-auth-bearer-token": "^8.0.0",
"hapi-auth-jwt2": "^10.2.0",
"husky": "^3.0.0",
"husky": "^7.0.0",
"is-ci": "^3.0.1",
"joi": "^17.2.0",
"js2xmlparser": "^4.0.0",
"jsonwebtoken": "^8.1.1",
"lint-staged": "^10.5.4",
"lint-staged": "^12.3.3",
"prettier": "^2.2.1",
"swagger-client": "^3.9.4",
"tsd": "^0.14.0"
"tsd": "^0.19.1"
},
"peerDependencies": {
"@hapi/hapi": "^20.0.0",
Expand All @@ -102,15 +103,10 @@
"git add"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"pre-push": "npm test"
}
},
"prettier": {
"printWidth": 120,
"singleQuote": true,
"trailingComma": "none"
}
},
"packageManager": "yarn@3.1.1"
}

0 comments on commit 6c952c1

Please sign in to comment.