-
-
Notifications
You must be signed in to change notification settings - Fork 480
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
2,508 additions
and
1,947 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": { | ||
|
@@ -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" | ||
} | ||
} |
Oops, something went wrong.