This commit is contained in:
louiscklaw
2025-06-15 03:50:15 +08:00
parent 862c5bd29c
commit 45bac1b3c8
7 changed files with 31 additions and 24 deletions

View File

@@ -1,3 +1,8 @@
**/*del
**/*bak
**/*copy*
# Logs # Logs
logs logs
*.log *.log

View File

@@ -92,6 +92,8 @@ const sortImportsRules = () => {
}; };
return { return {
'perfectionist/sort-named-imports': [1, { type: 'line-length', order: 'asc' }],
'perfectionist/sort-named-exports': [1, { type: 'line-length', order: 'asc' }],
'perfectionist/sort-exports': [ 'perfectionist/sort-exports': [
1, 1,
{ {
@@ -100,8 +102,6 @@ const sortImportsRules = () => {
groupKind: 'values-first', groupKind: 'values-first',
}, },
], ],
'perfectionist/sort-named-imports': [1, { type: 'line-length', order: 'asc' }],
'perfectionist/sort-named-exports': [1, { type: 'line-length', order: 'asc' }],
'perfectionist/sort-imports': [ 'perfectionist/sort-imports': [
2, 2,
{ {

View File

@@ -21,7 +21,7 @@
"re:build": "yarn clean && yarn install && yarn build", "re:build": "yarn clean && yarn install && yarn build",
"re:build-npm": "npm run clean && npm install && npm run build", "re:build-npm": "npm run clean && npm install && npm run build",
"tsc:dev": "yarn dev & yarn tsc:watch", "tsc:dev": "yarn dev & yarn tsc:watch",
"tsc:watch": "tsc --noEmit --watch", "tsc:w": "tsc --noEmit --watch",
"tsc:print": "npx tsc --showConfig" "tsc:print": "npx tsc --showConfig"
}, },
"engines": { "engines": {
@@ -43,6 +43,7 @@
"@fontsource-variable/noto-sans-sc": "^5.2.5", "@fontsource-variable/noto-sans-sc": "^5.2.5",
"@fontsource-variable/noto-sans-tc": "^5.2.5", "@fontsource-variable/noto-sans-tc": "^5.2.5",
"@fontsource-variable/nunito-sans": "^5.2.5", "@fontsource-variable/nunito-sans": "^5.2.5",
"@fontsource-variable/public-sans": "^5.2.5",
"@fontsource/barlow": "^5.2.5", "@fontsource/barlow": "^5.2.5",
"@fullcalendar/core": "^6.1.15", "@fullcalendar/core": "^6.1.15",
"@fullcalendar/daygrid": "^6.1.15", "@fullcalendar/daygrid": "^6.1.15",
@@ -52,7 +53,7 @@
"@fullcalendar/timegrid": "^6.1.15", "@fullcalendar/timegrid": "^6.1.15",
"@fullcalendar/timeline": "^6.1.15", "@fullcalendar/timeline": "^6.1.15",
"@hookform/resolvers": "^4.1.3", "@hookform/resolvers": "^4.1.3",
"@ianvs/prettier-plugin-sort-imports": "^4.4.1", "@ianvs/prettier-plugin-sort-imports": "^4.4.2",
"@iconify/react": "^5.2.0", "@iconify/react": "^5.2.0",
"@mui/lab": "^7.0.0-beta.10", "@mui/lab": "^7.0.0-beta.10",
"@mui/material": "^7.0.1", "@mui/material": "^7.0.1",

View File

@@ -12,7 +12,7 @@ const config = {
trailingComma: 'es5', trailingComma: 'es5',
plugins: [ plugins: [
// //
// '@ianvs/prettier-plugin-sort-imports', '@ianvs/prettier-plugin-sort-imports',
], ],
}; };

View File

@@ -54,6 +54,10 @@ export const endpoints = {
list: '/api/product/list', list: '/api/product/list',
details: '/api/product/details', details: '/api/product/details',
search: '/api/product/search', search: '/api/product/search',
save: '/api/product/saveProduct',
create: '/api/product/create',
update: '/api/product/update',
delete: '/api/product/delete',
}, },
user: { user: {
list: '/api/user/list', list: '/api/user/list',

View File

@@ -1,29 +1,32 @@
{ {
"compilerOptions": { "compilerOptions": {
"allowJs": true,
/* Bundler */ /* Bundler */
"baseUrl": ".", "baseUrl": ".",
"esModuleInterop": true, "module": "ESNext",
"incremental": true,
"isolatedModules": true,
"jsx": "react-jsx", "jsx": "react-jsx",
"allowJs": true,
"resolveJsonModule": true,
/* Build */
"target": "ES2020",
"lib": [ "lib": [
"ES2020", "ES2020",
"DOM", "DOM",
"DOM.Iterable" "DOM.Iterable"
], ],
"module": "ESNext",
"moduleResolution": "bundler", "moduleResolution": "bundler",
"noEmit": true, "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
"resolveJsonModule": true, "incremental": true,
"skipLibCheck": true, "skipLibCheck": true,
"esModuleInterop": true,
"isolatedModules": true,
/* Linting */ /* Linting */
"strict": true, "strict": true,
"strictNullChecks": true, "noEmit": true,
/* Build */ "strictNullChecks": true
"target": "ES2020",
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo"
}, },
"include": [
"src"
],
"exclude": [ "exclude": [
"node_modules", "node_modules",
".next", ".next",
@@ -39,12 +42,9 @@
"**/*.tmp", "**/*.tmp",
"**/*del" "**/*del"
], ],
"include": [
"src"
],
"references": [ "references": [
{ {
"path": "./tsconfig.node.json" "path": "./tsconfig.node.json"
} }
] ],
} }

View File

@@ -16,8 +16,5 @@
"**/*.log", "**/*.log",
"**/*.tmp", "**/*.tmp",
"**/*del" "**/*del"
], ], "include": ["vite.config.ts"]
"include": [
"vite.config.ts"
]
} }