Skip to content

Commit

Permalink
chore: upgrade deps & update link
Browse files Browse the repository at this point in the history
  • Loading branch information
YunYouJun committed Feb 3, 2024
1 parent 07ab6cd commit d08908d
Show file tree
Hide file tree
Showing 20 changed files with 2,508 additions and 1,947 deletions.
10 changes: 0 additions & 10 deletions .eslintrc

This file was deleted.

33 changes: 29 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,32 @@
{
"prettier.enable": false,
"typescript.tsdk": "node_modules/typescript/lib",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true,
},

// Enable the ESlint flat config support
"eslint.experimental.useFlatConfig": true,

// Disable the default formatter, use eslint instead
"prettier.enable": false,
"editor.formatOnSave": false,

// Auto fix
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit",
"source.organizeImports": "never"
},


// Enable eslint for all supported languages
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"vue",
"html",
"markdown",
"json",
"jsonc",
"yaml",
"toml"
]
}
9 changes: 9 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import antfu from '@antfu/eslint-config'

export default antfu({
rules: {
'no-use-before-define': 'off',
'react/react-in-jsx-scope': 'off',
'react/display-name': 'off',
},
})
45 changes: 23 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "air-conditioner",
"description": "云空调,便携小空调",
"packageManager": "[email protected]",
"packageManager": "[email protected]",
"type": "module",
"version": "0.1.3",
"private": true,
"author": {
Expand Down Expand Up @@ -38,31 +39,31 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-ga": "^3.3.1",
"react-gtm-module": "2",
"react-router-dom": "^6.12.1",
"sass": "^1.63.3",
"web-vitals": "^3.3.2"
"react-gtm-module": "2.0.11",
"react-router-dom": "^6.22.0",
"sass": "^1.70.0",
"web-vitals": "^3.5.2"
},
"devDependencies": {
"@antfu/eslint-config": "^0.39.5",
"@emotion/react": "^11.11.1",
"@antfu/eslint-config": "^2.6.3",
"@emotion/react": "^11.11.3",
"@emotion/styled": "^11.11.0",
"@iconify-json/ic": "^1.1.13",
"@iconify-json/mdi": "^1.1.52",
"@mui/material": "^5.13.4",
"@types/node": "^20.3.0",
"@types/react": "^18.2.11",
"@types/react-dom": "^18.2.4",
"@types/react-gtm-module": "2",
"@iconify-json/ic": "^1.1.17",
"@iconify-json/mdi": "^1.1.64",
"@mui/material": "^5.15.7",
"@types/node": "^20.11.16",
"@types/react": "^18.2.52",
"@types/react-dom": "^18.2.18",
"@types/react-gtm-module": "2.0.3",
"@types/react-router-dom": "^5.3.3",
"@vitejs/plugin-react": "^4.0.0",
"eslint": "^8.42.0",
"@vitejs/plugin-react": "^4.2.1",
"eslint": "^8.56.0",
"react-transition-group": "^4.4.5",
"typescript": "^5.1.3",
"unocss": "^0.53.1",
"usehooks-ts": "^2.9.1",
"vite": "^4.3.9",
"vite-plugin-pages": "^0.31.0",
"vite-plugin-pwa": "^0.16.4"
"typescript": "^5.3.3",
"unocss": "^0.58.4",
"usehooks-ts": "^2.12.1",
"vite": "^5.0.12",
"vite-plugin-pages": "^0.32.0",
"vite-plugin-pwa": "^0.17.5"
}
}
Loading

0 comments on commit d08908d

Please sign in to comment.