Skip to content

Commit

Permalink
feat: update dependencies & add new rules (#134)
Browse files Browse the repository at this point in the history
Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
  • Loading branch information
MichaelDeBoey and kentcdodds committed Aug 30, 2022
1 parent 8709978 commit 7dedf8f
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 26 deletions.
4 changes: 2 additions & 2 deletions .config/husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx pretty-quick --staged && npm run validate
16 changes: 8 additions & 8 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1
uses: styfle/cancel-workflow-action@0.10.0

- name: ⬇️ Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: ⎔ Setup node
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}

Expand All @@ -39,7 +39,7 @@ jobs:
run: npm run validate

- name: ⬆️ Upload coverage report
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v3

release:
needs: main
Expand All @@ -50,13 +50,13 @@ jobs:
github.ref) && github.event_name == 'push' }}
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1
uses: styfle/cancel-workflow-action@0.10.0

- name: ⬇️ Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: ⎔ Setup node
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 16

Expand All @@ -66,7 +66,7 @@ jobs:
useLockFile: false

- name: 🚀 Release
uses: cycjimmy/semantic-release-action@v2
uses: cycjimmy/semantic-release-action@v3
with:
semantic_version: 18
branches: |
Expand Down
3 changes: 3 additions & 0 deletions jest.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ module.exports = {

'jest/consistent-test-it': 'off',
'jest/expect-expect': 'off',
'jest/max-expects': 'off',
'jest/max-nested-describe': 'error',
'jest/no-alias-methods': 'off',
'jest/no-commented-out-tests': 'warn',
Expand All @@ -74,12 +75,14 @@ module.exports = {
'jest/no-test-return-statement': 'off',
'jest/prefer-called-with': 'error',
'jest/prefer-comparison-matcher': 'error',
'jest/prefer-each': 'error',
'jest/prefer-equality-matcher': 'error',
'jest/prefer-expect-assertions': 'off',
'jest/prefer-expect-resolves': 'off',
'jest/prefer-hooks-in-order': 'error',
'jest/prefer-hooks-on-top': 'error',
'jest/prefer-lowercase-title': 'off',
'jest/prefer-mock-promise-shorthand': 'error',
'jest/prefer-snapshot-hint': 'error',
'jest/prefer-spy-on': 'off',
'jest/prefer-strict-equal': 'off',
Expand Down
32 changes: 16 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,32 +41,32 @@
"dist"
],
"dependencies": {
"@rushstack/eslint-patch": "^1.1.3",
"@typescript-eslint/eslint-plugin": "^5.27.1",
"@typescript-eslint/parser": "^5.27.1",
"@rushstack/eslint-patch": "^1.1.4",
"@typescript-eslint/eslint-plugin": "^5.36.0",
"@typescript-eslint/parser": "^5.36.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^26.5.3",
"eslint-plugin-jest": "^26.9.0",
"eslint-plugin-jest-dom": "^4.0.2",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-react": "^7.30.0",
"eslint-plugin-react-hooks": "^4.5.0",
"eslint-plugin-testing-library": "^5.5.1",
"eslint-plugin-jsx-a11y": "^6.6.1",
"eslint-plugin-react": "^7.31.1",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-testing-library": "^5.6.0",
"read-pkg-up": "^7.0.1",
"semver": "^7.3.7"
},
"devDependencies": {
"@testing-library/dom": "^8.13.0",
"@testing-library/jest-dom": "^5.16.4",
"eslint": "^8.17.0",
"@testing-library/dom": "^8.17.1",
"@testing-library/jest-dom": "^5.16.5",
"eslint": "^8.23.0",
"eslint-find-rules": "^4.1.0",
"husky": "^7.0.4",
"jest": "^27.5.1",
"husky": "^8.0.1",
"jest": "^28.1.3",
"npm-run-all": "^4.1.5",
"prettier": "2.6.2",
"prettier": "2.7.1",
"pretty-quick": "^3.1.3",
"react": "^17.0.2",
"typescript": "^4.7.3"
"react": "^18.2.0",
"typescript": "^4.8.2"
},
"peerDependencies": {
"eslint": "^8.0.0",
Expand Down

0 comments on commit 7dedf8f

Please sign in to comment.