Skip to content

Commit

Permalink
Refactor ErrorBoundary
Browse files Browse the repository at this point in the history
  • Loading branch information
haishanh committed Oct 6, 2023
1 parent 54ffc9e commit 7a1acd8
Show file tree
Hide file tree
Showing 52 changed files with 772 additions and 312 deletions.
15 changes: 13 additions & 2 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@ parserOptions:
project: tsconfig.json
sourceType: module

settings:
react:
version: detect

plugins:
- simple-import-sort
- unused-imports
- jsx-a11y

extends:
Expand All @@ -30,8 +35,14 @@ rules:
'@typescript-eslint/no-explicit-any': 'off'
'@typescript-eslint/camelcase': 'off'
'no-use-before-define': 'off'
'@typescript-eslint/no-unused-vars':
- 'error'
# '@typescript-eslint/no-unused-vars':
# - 'error'
# - argsIgnorePattern: '^_'
## disable '@typescript-eslint/no-unused-vars' and use 'unused-imports' plugin/rules instead
'@typescript-eslint/no-unused-vars': 'off'
'unused-imports/no-unused-imports': 'error'
'unused-imports/no-unused-vars':
- 'warn'
- argsIgnorePattern: '^_'
'@typescript-eslint/no-use-before-define':
- error
Expand Down
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "yacd",
"version": "0.3.8",
"description": "Yet another Clash dashboard",
"type": "module",
"prettier": {
"printWidth": 100,
"singleQuote": true
Expand All @@ -12,7 +13,7 @@
"start": "vite",
"build": "vite build",
"serve": "vite preview",
"pretty": "prettier --write 'src/**/*.{js,scss,ts,tsx,md}'",
"pretty": "prettier --log-level warn --write 'src/**/*.{js,scss,ts,tsx,md}'",
"fmt": "pnpm lint && pnpm pretty"
},
"browserslist": [
Expand Down Expand Up @@ -44,11 +45,13 @@
"i18next-browser-languagedetector": "7.1.0",
"immer": "10.0.2",
"invariant": "^2.2.4",
"is-network-error": "1.0.0",
"jotai": "^2.4.3",
"lodash-es": "^4.17.21",
"modern-normalize": "2.0.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-error-boundary": "4.0.11",
"react-feather": "^2.0.10",
"react-i18next": "13.2.2",
"react-icons": "4.11.0",
Expand Down Expand Up @@ -89,12 +92,14 @@
"eslint-plugin-react": "7.33.2",
"eslint-plugin-react-hooks": "4.6.0",
"eslint-plugin-simple-import-sort": "^10.0.0",
"eslint-plugin-unused-imports": "3.0.0",
"postcss": "8.4.31",
"postcss-import": "15.1.0",
"postcss-simple-vars": "^7.0.1",
"prettier": "3.0.3",
"resize-observer-polyfill": "^1.5.1",
"sass": "1.68.0",
"tailwindcss": "3.3.3",
"typescript": "5.2.2",
"vite": "4.4.9",
"vite-plugin-pwa": "0.16.5"
Expand Down
Loading

1 comment on commit 7a1acd8

@vercel
Copy link

@vercel vercel bot commented on 7a1acd8 Oct 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

yacd – ./

yacd-haishan.vercel.app
yacd-git-master-haishan.vercel.app
yacd-gray.vercel.app

Please sign in to comment.