|
27 | 27 | "what-input": "5.0.5"
|
28 | 28 | },
|
29 | 29 | "devDependencies": {
|
| 30 | + "@types/node": "^18.19.115", |
30 | 31 | "@types/react": "16.1.0",
|
31 | 32 | "@types/react-dom": "16.0.4",
|
32 | 33 | "@types/react-hot-loader": "3.0.6",
|
|
37 | 38 | "@types/react-transition-group": "2.0.8",
|
38 | 39 | "@types/valid-url": "1.0.2",
|
39 | 40 | "@types/webpack-env": "1.13.5",
|
| 41 | + "@typescript-eslint/eslint-plugin": "^8.36.0", |
| 42 | + "@typescript-eslint/parser": "^8.36.0", |
40 | 43 | "babel-loader": "7.1.4",
|
41 | 44 | "chalk": "2.3.2",
|
42 | 45 | "clean-webpack-plugin": "0.1.19",
|
43 | 46 | "copy-webpack-plugin": "4.5.1",
|
| 47 | + "cross-env": "^7.0.3", |
44 | 48 | "css-loader": "0.28.11",
|
| 49 | + "eslint": "^9.30.1", |
| 50 | + "eslint-config-prettier": "^10.1.5", |
| 51 | + "eslint-plugin-import": "^2.32.0", |
| 52 | + "eslint-plugin-jsx-a11y": "^6.10.2", |
| 53 | + "eslint-plugin-react": "^7.37.5", |
| 54 | + "eslint-plugin-react-hooks": "^5.2.0", |
45 | 55 | "express": "4.16.3",
|
46 | 56 | "extract-text-webpack-plugin": "4.0.0-beta.0",
|
47 | 57 | "favicons-webpack-plugin": "0.0.9",
|
48 | 58 | "file-loader": "1.1.11",
|
| 59 | + "globals": "^16.3.0", |
49 | 60 | "html-webpack-plugin": "3.0.6",
|
50 |
| - "husky": "0.14.3", |
| 61 | + "husky": "^9.1.7", |
51 | 62 | "lint-staged": "7.0.4",
|
52 |
| - "sass": "^1.73.0", |
| 63 | + "prettier": "^3.6.2", |
53 | 64 | "redux-devtools-extension": "2.13.2",
|
54 | 65 | "resolve-url-loader": "2.3.0",
|
| 66 | + "sass": "^1.73.0", |
55 | 67 | "sass-loader": "6.0.7",
|
56 | 68 | "style-loader": "0.20.3",
|
| 69 | + "terser-webpack-plugin": "^2.3.8", |
57 | 70 | "ts-loader": "4.0.1",
|
58 |
| - "tslint": "5.9.1", |
59 | 71 | "tslint-config-prettier": "1.10.0",
|
60 |
| - "tslint-microsoft-contrib": "5.0.3", |
61 | 72 | "tslint-react": "3.5.1",
|
62 |
| - "typescript": "2.7.2", |
63 |
| - "uglifyjs-webpack-plugin": "1.2.4", |
| 73 | + "typescript": "^5.8.3", |
| 74 | + "typescript-eslint": "^8.36.0", |
64 | 75 | "webpack": "4.1.1",
|
65 | 76 | "webpack-cli": "2.0.12",
|
66 | 77 | "webpack-dev-server": "3.1.1",
|
67 | 78 | "webpack-hot-middleware": "2.21.2",
|
68 | 79 | "webpack-merge": "4.1.2",
|
69 | 80 | "webpackbar": "2.6.1"
|
70 | 81 | },
|
| 82 | + "overrides": { |
| 83 | + "node-sass": "npm:sass@^1.73.0" |
| 84 | + }, |
71 | 85 | "scripts": {
|
72 |
| - "tscheck": "tsc --noEmit", |
73 |
| - "tslint": "tslint --project .", |
74 |
| - "prepush": "npm run tscheck", |
75 |
| - "precommit": "lint-staged", |
| 86 | + "lint": "eslint . --ext .ts,.tsx", |
| 87 | + "lint:fix": "eslint . --ext .ts,.tsx --fix", |
| 88 | + "prepare": "husky install", |
76 | 89 | "test": "echo \"Error: no test specified\" && exit 1",
|
77 | 90 | "start": "webpack-dev-server --mode development --config ./webpack_config/webpack.dev.js",
|
78 |
| - "build": "webpack --mode production --config webpack_config/webpack.prod.js -p", |
| 91 | + "build": "NODE_OPTIONS=--openssl-legacy-provider webpack --mode production --config webpack_config/webpack.prod.js -p", |
79 | 92 | "prettier:diff": "prettier --write --config ./.prettierrc --list-different \"src/**/*.ts\" \"src/**/*.tsx\"",
|
80 | 93 | "formatAll": "find ./src/ -name '*.ts*' | xargs prettier --write --config ./.prettierrc --config-precedence file-override"
|
81 | 94 | },
|
82 |
| - "precommit": "lint-staged", |
83 | 95 | "lint-staged": {
|
84 | 96 | "*.{ts,tsx}": [
|
85 | 97 | "prettier --write --config ./.prettierrc --config-precedence file-override",
|
86 | 98 | "git add"
|
87 | 99 | ]
|
88 | 100 | },
|
89 |
| - "prepush": "npm run tslint && npm run tscheck", |
90 | 101 | "repository": {
|
91 | 102 | "type": "git",
|
92 | 103 | "url": "git+https://github.com/MyCryptoHQ/React-Typescript-Web3.git"
|
|
0 commit comments