Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: prevent dependabot verison updates (+ husky fixes) #867

Merged
merged 12 commits into from
Feb 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 15 additions & 11 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,30 @@ updates:
- 'type: dependencies'
- 'type: automerge'
allow:
- dependency-type: development
- dependency-type: direct
ignore:
- dependency-name: react
versions:
- '^16.11.0'
- '>=18.0.0'
brandonlenz marked this conversation as resolved.
Show resolved Hide resolved
- dependency-name: react-dom
versions:
- '^16.11.0'
- '>=18.0.0'
- dependency-name: react-test-renderer
versions:
- '>=18.0.0'
- dependency-name: '@types/react'
versions:
- '^16.10.0'
- '>=18.0.0'
- dependency-name: '@types/react-dom'
versions:
- '^16.10.0'
- '>=18.0.0'
- dependency-name: '@storybook/react'
versions:
- '^6.0.21'
- '>=7.0.0'
- dependency-name: '@storybook/addon-essentials'
versions:
- '^6.1.5'
- '>=7.0.0'
- dependency-name: 'uswds'

- package-ecosystem: npm
directory: '/example/'
Expand All @@ -48,13 +52,13 @@ updates:
ignore:
- dependency-name: react
versions:
- '^16.13.1'
- '>=18.0.0'
- dependency-name: react-dom
versions:
- '^16.13.1'
- '>=18.0.0'
- dependency-name: '@types/react'
versions:
- '^16.9.0'
- '>=18.0.0'
- dependency-name: '@types/react-dom'
versions:
- '^16.9.0'
- '>=18.0.0'
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 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn tsc --noEmit && yarn lint-staged
4 changes: 4 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn danger local -b main --failOnErrors
11 changes: 4 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@
"happo": "happo",
"happo-ci": "happo-ci-circleci",
"example:install": "yarn build && cd example/ && yarn",
"example:start": "cd example/ && yarn start"
"example:start": "cd example/ && yarn start",
"postinstall": "husky install",
"postpublish": "pinst --enable"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -103,6 +105,7 @@
"jest": "^26.1.0",
"lint-staged": "^10.0.9",
"mini-css-extract-plugin": "^1.0.0",
"pinst": "^2.1.4",
"prettier": "^2.0.2",
"react": "^17.0.1",
"react-dom": "^17.0.1",
Expand Down Expand Up @@ -133,12 +136,6 @@
"acorn-globals/acorn": "^6.4.1",
"webpack/acorn": "^6.4.1"
},
"husky": {
"hooks": {
"pre-commit": "tsc --noEmit && lint-staged",
"pre-push": "yarn danger local -b main --failOnErrors"
}
},
"lint-staged": {
"src/**/*.{js,jsx,ts,tsx,json,md}": [
"prettier --write",
Expand Down
32 changes: 32 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7127,6 +7127,11 @@ from2@^2.1.0:
inherits "^2.0.1"
readable-stream "^2.0.0"

fromentries@^1.3.2:
version "1.3.2"
resolved "https://registry.yarnpkg.com/fromentries/-/fromentries-1.3.2.tgz#e4bca6808816bf8f93b52750f1127f5a6fd86e3a"
integrity sha512-cHEpEQHUg0f8XdtZCc2ZAhrHzKzT0MrFUTcvx+hfxYu7rGMDc5SKoXFh+n4YigxsHXRzc6OrCshdR1bWH6HHyg==

fs-access@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/fs-access/-/fs-access-1.0.1.tgz#d6a87f262271cefebec30c553407fb995da8777a"
Expand Down Expand Up @@ -11223,6 +11228,14 @@ pinpoint@^1.1.0:
resolved "https://registry.yarnpkg.com/pinpoint/-/pinpoint-1.1.0.tgz#0cf7757a6977f1bf7f6a32207b709e377388e874"
integrity sha1-DPd1eml38b9/ajIge3CeN3OI6HQ=

pinst@^2.1.4:
version "2.1.4"
resolved "https://registry.yarnpkg.com/pinst/-/pinst-2.1.4.tgz#f951567ac350b5a6d920bca0d53f558df15a27e4"
integrity sha512-T44k87is/GiSjONFxSl/uL6yGqwVpojdnUfbYzNeatDTM8uRCoCEQjuQ0g1oW6XENfbdO2XKtMfdGlDSQ19MJA==
dependencies:
fromentries "^1.3.2"
write-json-file "^4.3.0"

pirates@^4.0.0, pirates@^4.0.1:
version "4.0.1"
resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.1.tgz#643a92caf894566f91b2b986d2c66950a8e2fb87"
Expand Down Expand Up @@ -12955,6 +12968,13 @@ snapdragon@^0.8.1:
source-map-resolve "^0.5.0"
use "^3.1.0"

sort-keys@^4.0.0:
version "4.2.0"
resolved "https://registry.yarnpkg.com/sort-keys/-/sort-keys-4.2.0.tgz#6b7638cee42c506fff8c1cecde7376d21315be18"
integrity sha512-aUYIEU/UviqPgc8mHR6IW1EGxkAXpeRETYcrzg8cLAvUPZcpAlleSXHV2mY7G12GphSH6Gzv+4MMVSSkbdteHg==
dependencies:
is-plain-obj "^2.0.0"

source-list-map@^2.0.0:
version "2.0.1"
resolved "https://registry.yarnpkg.com/source-list-map/-/source-list-map-2.0.1.tgz#3993bd873bfc48479cca9ea3a547835c7c154b34"
Expand Down Expand Up @@ -14768,6 +14788,18 @@ write-file-atomic@^3.0.0, write-file-atomic@^3.0.3:
signal-exit "^3.0.2"
typedarray-to-buffer "^3.1.5"

write-json-file@^4.3.0:
version "4.3.0"
resolved "https://registry.yarnpkg.com/write-json-file/-/write-json-file-4.3.0.tgz#908493d6fd23225344af324016e4ca8f702dd12d"
integrity sha512-PxiShnxf0IlnQuMYOPPhPkhExoCQuTUNPOa/2JWCYTmBquU9njyyDuwRKN26IZBlp4yn1nt+Agh2HOOBl+55HQ==
dependencies:
detect-indent "^6.0.0"
graceful-fs "^4.1.15"
is-plain-obj "^2.0.0"
make-dir "^3.0.0"
sort-keys "^4.0.0"
write-file-atomic "^3.0.0"

write@1.0.3:
version "1.0.3"
resolved "https://registry.yarnpkg.com/write/-/write-1.0.3.tgz#0800e14523b923a387e415123c865616aae0f5c3"
Expand Down