Skip to content

Commit

Permalink
feat: upgrade packages and fix ts errors across the app
Browse files Browse the repository at this point in the history
  • Loading branch information
He1DAr committed Oct 3, 2023
1 parent 81458a5 commit 3e0775d
Show file tree
Hide file tree
Showing 483 changed files with 10,287 additions and 12,610 deletions.
33 changes: 0 additions & 33 deletions .eslintrc.js

This file was deleted.

44 changes: 44 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"root": true,
"extends": [
"prettier",
"plugin:@next/next/recommended",
"plugin:react-hooks/recommended",
"plugin:storybook/recommended"
],
"plugins": ["prettier", "@typescript-eslint", "react-hooks"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module",
"project": ["tsconfig.json"]
},
"ignorePatterns": [
"node_modules/",
"eslintrc.js",
"**/*.test.ts",
"**/*.test.tsx"
],
"rules": {
"prettier/prettier": "error",
"arrow-body-style": "off",
"react/react-in-jsx-scope": "off",
"import/prefer-default-export": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react/require-default-props": "off",
"react/function-component-definition": "off",
"no-promise-executor-return": "warn",
"no-restricted-syntax": 0,
"no-use-before-define": "off",
"no-nested-ternary": "off",
"no-await-in-loop": "off",
"no-plusplus": "off",
"prefer-destructuring": "warn",
"no-unused-vars": "warn",
"react/jsx-props-no-spreading": "off",
"import/extensions": "off"
}
}
1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

4 changes: 3 additions & 1 deletion .husky/commit-msg
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
#!/usr/bin/env sh
npx --no -- commitlint --edit ${1}
. "$(dirname -- "$0")/_/husky.sh"

npx --no -- commitlint --edit $1
3 changes: 3 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
enable-pre-post-scripts=true
auto-install-peers=true

7 changes: 2 additions & 5 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@ const withBundleAnalyzer =
const SENTRY_DSN = process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN;

const moduleExports = withBundleAnalyzer({
eslint: {
// Warning: Dangerously allow production builds to successfully complete even if
// your project has ESLint errors.
ignoreDuringBuilds: true,
},
reactStrictMode: true,
swcMinify: true,
output: 'standalone',
async redirects() {
return [
Expand Down
156 changes: 75 additions & 81 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
"build": "next telemetry disable && next build",
"build:analyze": "next telemetry disable && ANALYZE=true next build",
"dev": "next dev",
"lint": "pnpm run lint:eslint && pnpm run lint:prettier",
"lint": "next lint",
"lint:eslint": "eslint --ext .ts,.tsx ./src",
"lint:fix": "eslint --ext .ts,.tsx ./src/ -f unix --fix && prettier --write src/**/*.{ts,tsx} *.js",
"lint:prettier": "prettier --check \"src/**/*.{ts,tsx}\" *.js *.json",
"lint:prettier:fix": "prettier --write \"src/**/*.{ts,tsx}\" *.js *.json",
"prettier:fix": "prettier --write 'src/**/*.{js,jsx,ts,tsx}' --ignore-path .prettierignore",
"lint:unused-exports": "ts-unused-exports tsconfig.json",
"start": "next start",
"typecheck": "tsc --noEmit",
Expand All @@ -24,9 +24,9 @@
"version": "1.0.0",
"author": "Hiro Systems PBC (formerly Blockstack PBC)",
"dependencies": {
"@chakra-ui/anatomy": "2.2.0",
"@chakra-ui/react": "2.8.0",
"@chakra-ui/theme-tools": "2.1.0",
"@chakra-ui/anatomy": "2.2.1",
"@chakra-ui/react": "2.8.1",
"@chakra-ui/theme-tools": "2.1.1",
"@emotion/cache": "11.11.0",
"@emotion/core": "11.0.0",
"@emotion/css": "11.11.2",
Expand All @@ -38,57 +38,57 @@
"@mdi/react": "1.6.1",
"@monaco-editor/react": "4.5.2",
"@reach/tooltip": "0.18.0",
"@react-aria/interactions": "3.17.0",
"@react-spectrum/utils": "3.10.1",
"@react-stately/toggle": "3.6.1",
"@reduxjs/toolkit": "1.9.5",
"@react-aria/interactions": "3.18.0",
"@react-spectrum/utils": "3.10.2",
"@react-stately/toggle": "3.6.2",
"@reduxjs/toolkit": "1.9.6",
"@segment/snippet": "4.16.2",
"@sentry/nextjs": "7.67.0",
"@stacks/auth": "6.7.0",
"@stacks/blockchain-api-client": "7.3.0",
"@stacks/common": "4.1.0",
"@stacks/connect": "7.0.0",
"@stacks/connect-react": "20.0.0",
"@stacks/connect-ui": "6.0.0",
"@stacks/network": "4.1.0",
"@stacks/transactions": "4.1.0",
"@tanstack/react-query": "4.33.0",
"@sentry/nextjs": "7.71.0",
"@stacks/auth": "6.9.0",
"@stacks/blockchain-api-client": "7.3.2",
"@stacks/common": "6.8.1",
"@stacks/connect": "7.4.0",
"@stacks/connect-react": "22.2.0",
"@stacks/connect-ui": "6.1.1",
"@stacks/network": "6.8.1",
"@stacks/stacking": "^6.9.0",
"@stacks/transactions": "6.9.0",
"@tanstack/react-query": "4.35.3",
"@tippyjs/react": "4.2.6",
"@types/cookie": "0.5.2",
"@types/react-redux": "7.1.26",
"@vkontakte/vk-qr": "2.0.13",
"bignumber.js": "9.1.2",
"bitcoinjs-lib": "6.1.3",
"bitcoinjs-lib": "6.1.5",
"bn.js": "5.2.1",
"brotli-webpack-plugin": "1.1.0",
"buffer": "6.0.3",
"bufferutil": "4.0.7",
"c32check": "2.0.0",
"cookie": "0.5.0",
"dayjs": "1.11.9",
"dayjs": "1.11.10",
"express": "4.18.2",
"formik": "2.4.3",
"formik": "2.4.5",
"framer-motion": "10.16.4",
"husky": "8.0.3",
"ioredis": "5.3.2",
"mdi-react": "9.2.0",
"modern-normalize": "2.0.0",
"monaco-editor": "0.41.0",
"monaco-editor": "0.43.0",
"monaco-editor-textmate": "4.0.0",
"monaco-textmate": "3.0.1",
"monaco-vscode-textmate-theme-converter": "0.1.7",
"monacode": "0.3.1",
"morgan": "1.10.0",
"next": "13.1.6",
"next-plugin-preact": "3.0.6",
"next": "13.5.3",
"next-plugin-preact": "3.0.7",
"nookies": "2.5.2",
"onigasm": "2.2.5",
"pluralize": "8.0.0",
"preact-render-to-string": "5.1.19",
"preact-render-to-string": "6.2.1",
"prismjs": "1.29.0",
"react": "18.2.0",
"react-aria": "3.27.0",
"react-cookie": "6.1.0",
"react-aria": "3.28.0",
"react-cookie": "6.1.1",
"react-csv": "2.2.2",
"react-dom": "18.2.0",
"react-error-boundary": "4.0.11",
Expand All @@ -97,76 +97,70 @@
"react-loading-skeleton": "3.3.1",
"react-redux": "8.1.2",
"react-simple-code-editor": "0.13.1",
"react-ssr-prepass": "npm:preact-ssr-prepass",
"react-ssr-prepass": "npm:preact-ssr-prepass@^1.2.0",
"schema-inspector": "2.0.3",
"server-only": "0.0.1",
"statuspage.io": "3.2.5",
"swr": "2.2.2",
"swr": "2.2.4",
"unique-names-generator": "4.7.1",
"use-events": "1.4.2",
"utf-8-validate": "6.0.3",
"valid-url": "1.0.9",
"web-api-hooks": "3.0.2",
"webpack": "5.88.2",
"yup": "1.2.0"
"yup": "1.3.0"
},
"devDependencies": {
"@babel/core": "7.20.12",
"@commitlint/config-conventional": "12.1.4",
"@next/bundle-analyzer": "11.0.1",
"@playwright/test": "1.22.2",
"@stacks/eslint-config": "1.2.0",
"@babel/core": "7.23.0",
"@next/bundle-analyzer": "13.5.3",
"@next/eslint-plugin-next": "13.5.3",
"@playwright/test": "1.38.1",
"@stacks/eslint-config": "2.0.0",
"@stacks/prettier-config": "0.0.10",
"@stacks/stacks-blockchain-api-types": "4.2.0-stacks-2.1.1",
"@storybook/addon-actions": "6.5.15",
"@storybook/addon-docs": "6.5.15",
"@storybook/addon-essentials": "6.5.15",
"@storybook/addon-interactions": "6.5.15",
"@storybook/addon-links": "6.5.15",
"@storybook/builder-webpack5": "6.5.15",
"@storybook/manager-webpack5": "6.5.15",
"@storybook/react": "6.5.15",
"@storybook/testing-library": "0.0.13",
"@testing-library/jest-dom": "5.16.5",
"@stacks/stacks-blockchain-api-types": "7.3.2",
"@storybook/addon-actions": "7.4.5",
"@storybook/addon-docs": "7.4.5",
"@storybook/addon-essentials": "7.4.5",
"@storybook/addon-interactions": "7.4.5",
"@storybook/addon-links": "7.4.5",
"@storybook/builder-webpack5": "7.4.5",
"@storybook/manager-webpack5": "6.5.16",
"@storybook/react": "7.4.5",
"@storybook/testing-library": "0.2.1",
"@testing-library/jest-dom": "6.1.3",
"@testing-library/react": "14.0.0",
"@testing-library/react-hooks": "8.0.1",
"@testing-library/user-event": "^14.4.3",
"@trivago/prettier-plugin-sort-imports": "4.0.0",
"@types/express": "4.17.13",
"@types/fontfaceobserver": "0.0.6",
"@types/jest": "28.1.6",
"@types/node": "16.4.3",
"@types/pluralize": "0.0.29",
"@types/prismjs": "1.16.6",
"@types/react": "17.0.15",
"@types/react-csv": "1.1.3",
"@types/react-test-renderer": "18.0.0",
"@testing-library/user-event": "^14.5.1",
"@types/jest": "29.5.5",
"@types/node": "20.6.5",
"@types/pluralize": "0.0.31",
"@types/prismjs": "1.26.1",
"@types/react": "18.2.22",
"@types/react-csv": "1.1.5",
"@types/react-test-renderer": "18.0.2",
"@types/redux-mock-store": "1.0.3",
"@types/store": "2.0.2",
"@types/styled-system__theme-get": "5.0.1",
"@types/testing-library__jest-dom": "5.14.8",
"@types/valid-url": "1.0.3",
"@typescript-eslint/eslint-plugin": "4.28.5",
"@typescript-eslint/parser": "4.28.5",
"@welldone-software/why-did-you-render": "6.2.0",
"babel-loader": "8.3.0",
"commitlint": "12.1.4",
"eslint": "7.30.0",
"eslint-config-next": "13.1.1",
"eslint-plugin-import": "2.23.4",
"eslint-plugin-prettier": "3.4.0",
"@types/valid-url": "1.0.4",
"@typescript-eslint/eslint-plugin": "6.7.3",
"@typescript-eslint/parser": "6.7.3",
"eslint": "8.50.0",
"eslint-config-airbnb": "19.0.4",
"eslint-config-airbnb-typescript": "17.1.0",
"eslint-config-next": "13.5.3",
"eslint-config-prettier": "9.0.0",
"eslint-plugin-import": "2.28.1",
"eslint-plugin-jsx-a11y": "6.7.1",
"eslint-plugin-prettier": "5.0.0",
"eslint-plugin-react": "7.33.2",
"eslint-plugin-react-hooks": "4.6.0",
"eslint-plugin-storybook": "0.6.10",
"jest": "28.1.3",
"jest-environment-jsdom": "29.5.0",
"lint-staged": "11.0.0",
"next-router-mock": "0.9.7",
"package-json-cleanup-loader": "1.0.3",
"prettier": "2.8.1",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"prettier": "3.0.3",
"react-test-renderer": "18.2.0",
"redux-mock-store": "1.5.4",
"ts-unused-exports": "8.0.0",
"typescript": "4.8.4"
"ts-unused-exports": "10.0.1",
"typescript": "5.2.2",
"husky": "^8.0.0"
},
"homepage": "https://explorer.hiro.so",
"license": "MIT",
Expand All @@ -188,7 +182,7 @@
]
},
"resolutions": {
"eslint": "7.16.0",
"eslint": "8.23.1",
"bn.js": "5.1.3",
"buffer": "6.0.3",
"schema-inspector": "2.0.0",
Expand Down
Loading

0 comments on commit 3e0775d

Please sign in to comment.