|
5 | 5 | "homepage": "https://react-native-community.github.io/upgrade-helper", |
6 | 6 | "scripts": { |
7 | 7 | "build": "EXTEND_ESLINT=true react-app-rewired build", |
8 | | - "docker-test-e2e": "yarn start-and-wait && react-app-rewired test --watchAll=false --onlyChanged=false --testPathPattern='/__tests__/.*(\\.|).e2e.spec.js?$'", |
| 8 | + "docker-test-e2e": "yarn start-and-wait && react-app-rewired test --watchAll=false --onlyChanged=false --testPathPattern='/__tests__/.*(\\.|).e2e.spec.(js|jsx|ts|tsx)?$'", |
9 | 9 | "lint": "eslint . --cache --report-unused-disable-directives", |
| 10 | + "typecheck": "tsc --noEmit", |
10 | 11 | "prepare": "husky install", |
11 | 12 | "start": "EXTEND_ESLINT=true react-app-rewired start", |
12 | 13 | "start-and-wait": "yarn start & wget --retry-connrefused --waitretry=1 --read-timeout=20 --timeout=15 -t 30 http://localhost:3000/", |
13 | | - "test": "react-app-rewired test --watchAll=false --onlyChanged=false --testPathPattern='/__tests__/((?!e2e).)*.spec.js?$'", |
| 14 | + "test": "react-app-rewired test --watchAll=false --onlyChanged=false --testPathPattern='/__tests__/((?!e2e).)*.spec.(js|jsx|ts|tsx)?$'", |
14 | 15 | "test-e2e": "docker-compose run tests" |
15 | 16 | }, |
16 | 17 | "dependencies": { |
17 | | - "@ant-design/icons": "4.0.3", |
18 | | - "@emotion/react": "^11.10.6", |
19 | | - "@emotion/styled": "^11.10.6", |
20 | | - "antd": "5.2.3", |
| 18 | + "@ant-design/icons": "^5.3.0", |
| 19 | + "@emotion/react": "^11.11.3", |
| 20 | + "@emotion/styled": "^11.11.0", |
| 21 | + "antd": "^5.14.0", |
21 | 22 | "date-fns": "^2.29.3", |
22 | | - "framer-motion": "^2.9.5", |
| 23 | + "framer-motion": "^11.0.3", |
23 | 24 | "markdown-to-jsx": "7.1.9", |
24 | 25 | "query-string": "8.1.0", |
25 | 26 | "react": "18.2.0", |
26 | 27 | "react-content-loader": "6.2.0", |
27 | 28 | "react-copy-to-clipboard": "5.1.0", |
28 | | - "react-diff-view": "2.4.2", |
| 29 | + "react-diff-view": "^3.2.0", |
29 | 30 | "react-dom": "18.2.0", |
30 | 31 | "react-dom-confetti": "0.2.0", |
31 | 32 | "react-ga": "3.3.1", |
|
35 | 36 | "use-persisted-state": "^0.3.3" |
36 | 37 | }, |
37 | 38 | "devDependencies": { |
38 | | - "@emotion/babel-preset-css-prop": "^11.10.0", |
39 | | - "@emotion/eslint-plugin": "^11.10.0", |
| 39 | + "@emotion/babel-preset-css-prop": "^11.11.0", |
| 40 | + "@emotion/eslint-plugin": "^11.11.0", |
| 41 | + "@jest/globals": "^29.7.0", |
40 | 42 | "@testing-library/react": "^14.0.0", |
| 43 | + "@types/jest": "^29.5.12", |
| 44 | + "@types/jest-image-snapshot": "^6.4.0", |
| 45 | + "@types/markdown-to-jsx": "^7.0.1", |
| 46 | + "@types/node": "^20.11.16", |
| 47 | + "@types/react": "18.2.0", |
| 48 | + "@types/react-copy-to-clipboard": "^5.0.7", |
| 49 | + "@types/react-dom": "^18.2.18", |
| 50 | + "@types/semver": "^7.5.6", |
| 51 | + "@types/use-persisted-state": "^0.3.4", |
| 52 | + "@typescript-eslint/eslint-plugin": "^6.20.0", |
| 53 | + "@typescript-eslint/parser": "^6.20.0", |
41 | 54 | "customize-cra": "^1.0.0", |
42 | 55 | "eslint": "^8.35.0", |
43 | 56 | "eslint-plugin-prettier": "^4.2.1", |
44 | 57 | "gh-pages": "5.0.0", |
45 | 58 | "husky": "8.0.3", |
46 | | - "jest-image-snapshot": "6.1.0", |
| 59 | + "jest-image-snapshot": "6.4.0", |
47 | 60 | "prettier": "2.8.4", |
48 | 61 | "pretty-quick": "3.1.3", |
49 | 62 | "puppeteer": "10.0.0", |
50 | | - "react-app-rewired": "^2.2.1" |
| 63 | + "react-app-rewired": "^2.2.1", |
| 64 | + "ts-jest": "^29.1.2", |
| 65 | + "typescript": "^5.3.3" |
51 | 66 | }, |
52 | 67 | "browserslist": { |
53 | 68 | "production": [ |
|
61 | 76 | "last 1 safari version" |
62 | 77 | ] |
63 | 78 | }, |
64 | | - "eslintConfig": { |
65 | | - "extends": [ |
66 | | - "react-app" |
67 | | - ], |
68 | | - "plugins": [ |
69 | | - "prettier", |
70 | | - "@emotion" |
71 | | - ], |
72 | | - "rules": { |
73 | | - "prettier/prettier": "error", |
74 | | - "jsx-a11y/accessible-emoji": "off", |
75 | | - "import/no-anonymous-default-export": "off", |
76 | | - "react-hooks/exhaustive-deps": "off" |
77 | | - } |
78 | | - }, |
79 | 79 | "husky": { |
80 | 80 | "hooks": { |
81 | | - "pre-commit": "pretty-quick --staged --pattern \"src/**/*.*(js|jsx)\"", |
| 81 | + "pre-commit": "pretty-quick --staged --pattern \"src/**/*.*(js|jsx|ts|tsx)\"", |
82 | 82 | "pre-push": "yarn run lint" |
83 | 83 | } |
84 | | - }, |
85 | | - "jest": { |
86 | | - "testMatch": [ |
87 | | - "**/__tests__/**/*.spec.js" |
88 | | - ], |
89 | | - "setupFilesAfterEnv": [ |
90 | | - "<rootDir>/jest.setup.js" |
91 | | - ] |
92 | 84 | } |
93 | 85 | } |
0 commit comments