diff --git a/.eslintrc.js b/.eslintrc.js index 38f8a77..1dd7d06 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -19,4 +19,9 @@ module.exports = { 'no-var': 'error', eqeqeq: ['error', 'smart'], }, + settings: { + react: { + version: 'detect', + }, + }, }; diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 04f0535..ae85809 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -11,7 +11,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: '12.x' + node-version: '16.x' registry-url: 'https://registry.npmjs.org' - name: Install Modules run: npm install diff --git a/package.json b/package.json index d1544ee..7108d6c 100644 --- a/package.json +++ b/package.json @@ -39,8 +39,8 @@ "@types/jest": "^27.0.3", "@types/react": "^17.0.9", "@types/testing-library__jest-dom": "^5.9.5", - "@typescript-eslint/eslint-plugin": "^4.26.0", - "@typescript-eslint/parser": "^4.26.0", + "@typescript-eslint/eslint-plugin": "^5.7.0", + "@typescript-eslint/parser": "^5.7.0", "auto-changelog": "^2.3.0", "bunchee": "^1.7.3", "eslint": "^7.28.0", @@ -50,13 +50,14 @@ "eslint-plugin-node": "^11.1.0", "eslint-plugin-prettier": "^3.4.0", "eslint-plugin-promise": "^5.1.0", - "eslint-plugin-react": "^7.24.0", + "eslint-plugin-react": "^7.27.1", "jest": "^27.0.4", "prettier": "^2.3.1", "react": "^17.0.2", "react-dom": "^17.0.2", "release-it": "^14.10.0", "ts-jest": "^27.1.1", + "typescript": "^4.5.4", "watch": "^1.0.2" } } diff --git a/test/useRive.test.tsx b/test/useRive.test.tsx index 287c1ad..07dd09e 100644 --- a/test/useRive.test.tsx +++ b/test/useRive.test.tsx @@ -1,5 +1,5 @@ import { renderHook, act } from '@testing-library/react-hooks'; -import { mocked } from 'ts-jest/utils'; +import { mocked } from 'jest-mock'; import useRive from '../src/hooks/useRive'; import * as rive from 'rive-js';