chore: migrate eslint config (#6895)
* chore: migrate eslint config * submodule * doc * fix: copy flat eslint config in app image * ci: use packageManager pnpm version in sandbox test --------- Co-authored-by: archer <545436317@qq.com>
Showing
.eslintignore
deleted
100644 → 0
.eslintrc.json
deleted
100644 → 0
eslint.config.mjs
0 → 100644
lint-staged.config.mjs
0 → 100644
| ... | ... | @@ -9,7 +9,7 @@ |
| "postinstall": "pnpm gen:theme-typings && pnpm run build:sdks", | ||
| "initIcon": "node ./scripts/icon/init.js && prettier --config \"./.prettierrc.js\" --write \"packages/web/components/common/Icon/constants.ts\"", | ||
| "previewIcon": "node ./scripts/icon/index.js", | ||
| "lint": "eslint \"**/*.{ts,tsx}\" --fix --ignore-path .eslintignore", | ||
| "lint": "turbo run lint", | ||
| "create:i18n": "node ./scripts/i18n/index.js", | ||
| "clean:unused:pro": "node --experimental-strip-types ./pro/scripts/cleanup-unused.ts", | ||
| "clean:unused:pro:write": "node --experimental-strip-types ./pro/scripts/cleanup-unused.ts --write", | ||
| ... | ... | @@ -27,42 +27,24 @@ |
| }, | ||
| "devDependencies": { | ||
| "@chakra-ui/cli": "^2.4.1", | ||
| "@typescript-eslint/eslint-plugin": "catalog:", | ||
| "@typescript-eslint/parser": "catalog:", | ||
| "@vitest/coverage-v8": "catalog:", | ||
| "eslint": "catalog:", | ||
| "eslint-config-next": "catalog:", | ||
| "eslint": "catalog:eslint", | ||
| "eslint-config-next": "catalog:eslint", | ||
| "husky": "^8.0.3", | ||
| "i18next": "catalog:", | ||
| "js-yaml": "catalog:", | ||
| "lint-staged": "^13.3.0", | ||
| "lint-staged": "catalog:", | ||
| "mongodb-memory-server": "catalog:", | ||
| "next-i18next": "catalog:", | ||
| "prettier": "3.2.4", | ||
| "prettier": "catalog:", | ||
| "react-i18next": "catalog:", | ||
| "turbo": "2.9.9", | ||
| "typescript-eslint": "catalog:eslint", | ||
| "typescript": "catalog:", | ||
| "vitest": "catalog:" | ||
| }, | ||
| "lint-staged": { | ||
| "./document/**/**/*.mdx": [ | ||
| "pnpm -C ./document run format-doc", | ||
| "pnpm -C ./document run initDocTime", | ||
| "pnpm -C ./document run initDocToc", | ||
| "pnpm -C ./document run checkDocRefs", | ||
| "pnpm -C ./document run removeInvalidImg", | ||
| "git add ." | ||
| ], | ||
| "**/*.{ts,tsx}": [ | ||
| "prettier --config ./.prettierrc.js --write", | ||
| "eslint --fix --ignore-path .eslintignore" | ||
| ], | ||
| "**/*.scss": [ | ||
| "prettier --config ./.prettierrc.js --write" | ||
| ] | ||
| }, | ||
| "engines": { | ||
| "node": ">=20", | ||
| "node": ">=20.19.0", | ||
| "pnpm": "10.x" | ||
| }, | ||
| "packageManager": "pnpm@10.33.4" | ||
| ... | ... |
| ... | ... | @@ -2,7 +2,7 @@ |
| "name": "@fastgpt/web", | ||
| "version": "1.0.0", | ||
| "engines": { | ||
| "node": ">=20", | ||
| "node": ">=20.19.0", | ||
| "pnpm": "10.x" | ||
| }, | ||
| "dependencies": { | ||
| ... | ... |
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
| ... | ... | @@ -13,10 +13,11 @@ |
| "test:watch": "vitest -c vitest.config.ts", | ||
| "build:workers": "tsx scripts/build-workers.ts", | ||
| "typecheck": "tsc --noEmit --pretty", | ||
| "lint": "eslint ./src", | ||
| "build:workers:watch": "tsx scripts/build-workers.ts --watch" | ||
| }, | ||
| "engines": { | ||
| "node": ">=20", | ||
| "node": ">=20.19.0", | ||
| "pnpm": "10.x" | ||
| }, | ||
| "dependencies": { | ||
| ... | ... | @@ -105,12 +106,11 @@ |
| "@types/react": "catalog:", | ||
| "@types/react-dom": "catalog:", | ||
| "@types/react-syntax-highlighter": "^15.5.6", | ||
| "@typescript-eslint/eslint-plugin": "catalog:", | ||
| "@typescript-eslint/parser": "catalog:", | ||
| "eslint": "catalog:", | ||
| "eslint-config-next": "catalog:", | ||
| "eslint": "catalog:eslint", | ||
| "eslint-config-next": "catalog:eslint", | ||
| "tailwindcss": "^3", | ||
| "tsx": "catalog:", | ||
| "typescript-eslint": "catalog:eslint", | ||
| "typescript": "catalog:", | ||
| "vitest": "catalog:" | ||
| } | ||
| ... | ... |
projects/marketplace/.eslintrc.json
deleted
100644 → 0
| ... | ... | @@ -5,11 +5,10 @@ |
| "scripts": { | ||
| "dev": "next dev", | ||
| "build": "next build", | ||
| "start": "next start", | ||
| "lint": "next lint" | ||
| "start": "next start" | ||
| }, | ||
| "engines": { | ||
| "node": ">=20", | ||
| "node": ">=20.19.0", | ||
| "pnpm": "10.x" | ||
| }, | ||
| "dependencies": { | ||
| ... | ... | @@ -39,8 +38,8 @@ |
| "@types/node": "catalog:", | ||
| "@types/react": "catalog:", | ||
| "@types/react-dom": "catalog:", | ||
| "eslint": "catalog:", | ||
| "eslint-config-next": "catalog:", | ||
| "eslint": "catalog:eslint", | ||
| "eslint-config-next": "catalog:eslint", | ||
| "postcss": "^8", | ||
| "tailwindcss": "^3.4.1", | ||
| "typescript": "catalog:" | ||
| ... | ... |
| ... | ... | @@ -39,7 +39,7 @@ |
| "access": "public" | ||
| }, | ||
| "engines": { | ||
| "node": ">=20", | ||
| "node": ">=20.19.0", | ||
| "pnpm": "10.x" | ||
| }, | ||
| "license": "Apache-2.0", | ||
| ... | ... |
| ... | ... | @@ -53,7 +53,7 @@ |
| "access": "public" | ||
| }, | ||
| "engines": { | ||
| "node": ">=20", | ||
| "node": ">=20.19.0", | ||
| "pnpm": "10.x" | ||
| }, | ||
| "license": "Apache-2.0", | ||
| ... | ... |
Please
register
or
sign in
to comment