mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-21 03:35:36 +00:00

* update: Add type * fix: update import statement for NextApiRequest type * fix: update imports to use type for LexicalEditor and EditorState * Refactor imports to use 'import type' for type-only imports across multiple files - Updated imports in various components and API files to use 'import type' for better clarity and to optimize TypeScript's type checking. - Ensured consistent usage of type imports in files related to chat, dataset, workflow, and user management. - Improved code readability and maintainability by distinguishing between value and type imports. * refactor: remove old ESLint configuration and add new rules - Deleted the old ESLint configuration file from the app project. - Added a new ESLint configuration file with updated rules and settings. - Changed imports to use type-only imports in various files for better clarity and performance. - Updated TypeScript configuration to remove unnecessary options. - Added an ESLint ignore file to exclude build and dependency directories from linting. * fix: update imports to use 'import type' for type-only imports in schema files
54 lines
1.9 KiB
JSON
54 lines
1.9 KiB
JSON
{
|
|
"name": "fastgpt",
|
|
"version": "4.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"prepare": "husky install",
|
|
"format-code": "prettier --config \"./.prettierrc.js\" --write \"./**/src/**/*.{ts,tsx,scss}\"",
|
|
"format-doc": "zhlint --dir ./docSite *.md --fix",
|
|
"gen:llms": "node ./docSite/doc-generate-llms.js",
|
|
"gen:theme-typings": "chakra-cli tokens packages/web/styles/theme.ts --out node_modules/.pnpm/node_modules/@chakra-ui/styled-system/dist/theming.types.d.ts",
|
|
"postinstall": "pnpm gen:theme-typings",
|
|
"initIcon": "node ./scripts/icon/init.js",
|
|
"previewIcon": "node ./scripts/icon/index.js",
|
|
"api:gen": "tsc ./scripts/openapi/index.ts && node ./scripts/openapi/index.js && npx @redocly/cli build-docs ./scripts/openapi/openapi.json -o ./projects/app/public/openapi/index.html",
|
|
"create:i18n": "node ./scripts/i18n/index.js",
|
|
"lint": "eslint \"**/*.{ts,tsx}\" --ignore-path .eslintignore",
|
|
"lint:fix": "eslint \"**/*.{ts,tsx}\" --fix --ignore-path .eslintignore",
|
|
"test": "vitest run",
|
|
"test:workflow": "vitest run workflow"
|
|
},
|
|
"devDependencies": {
|
|
"@chakra-ui/cli": "^2.4.1",
|
|
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
"@typescript-eslint/parser": "^6.21.0",
|
|
"@vitest/coverage-v8": "^3.0.9",
|
|
"eslint": "^8.57.0",
|
|
"eslint-config-next": "^14.1.0",
|
|
"husky": "^8.0.3",
|
|
"i18next": "23.16.8",
|
|
"lint-staged": "^13.3.0",
|
|
"next-i18next": "15.4.2",
|
|
"prettier": "3.2.4",
|
|
"react-i18next": "14.1.2",
|
|
"vitest": "^3.0.9",
|
|
"js-yaml": "^4.1.0",
|
|
"mongodb-memory-server": "^10.1.4",
|
|
"zhlint": "^0.7.4"
|
|
},
|
|
"lint-staged": {
|
|
"./**/**/*.{ts,tsx,scss}": [
|
|
"npm run format-code",
|
|
"npm run lint:fix"
|
|
],
|
|
"./docSite/**/**/*.md": "npm run format-doc && npm run gen:llms"
|
|
},
|
|
"resolutions": {
|
|
"mdast-util-gfm-autolink-literal": "2.0.0"
|
|
},
|
|
"engines": {
|
|
"node": ">=18.16.0",
|
|
"pnpm": ">=9.0.0"
|
|
}
|
|
}
|