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 @@ | ... | @@ -9,7 +9,7 @@ |
| "postinstall": "pnpm gen:theme-typings && pnpm run build:sdks", | "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\"", | "initIcon": "node ./scripts/icon/init.js && prettier --config \"./.prettierrc.js\" --write \"packages/web/components/common/Icon/constants.ts\"", | ||
| "previewIcon": "node ./scripts/icon/index.js", | "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", | "create:i18n": "node ./scripts/i18n/index.js", | ||
| "clean:unused:pro": "node --experimental-strip-types ./pro/scripts/cleanup-unused.ts", | "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", | "clean:unused:pro:write": "node --experimental-strip-types ./pro/scripts/cleanup-unused.ts --write", | ||
| ... | @@ -27,42 +27,24 @@ | ... | @@ -27,42 +27,24 @@ |
| }, | }, | ||
| "devDependencies": { | "devDependencies": { | ||
| "@chakra-ui/cli": "^2.4.1", | "@chakra-ui/cli": "^2.4.1", | ||
| "@typescript-eslint/eslint-plugin": "catalog:", | |||
| "@typescript-eslint/parser": "catalog:", | |||
| "@vitest/coverage-v8": "catalog:", | "@vitest/coverage-v8": "catalog:", | ||
| "eslint": "catalog:", | "eslint": "catalog:eslint", | ||
| "eslint-config-next": "catalog:", | "eslint-config-next": "catalog:eslint", | ||
| "husky": "^8.0.3", | "husky": "^8.0.3", | ||
| "i18next": "catalog:", | "i18next": "catalog:", | ||
| "js-yaml": "catalog:", | "js-yaml": "catalog:", | ||
| "lint-staged": "^13.3.0", | "lint-staged": "catalog:", | ||
| "mongodb-memory-server": "catalog:", | "mongodb-memory-server": "catalog:", | ||
| "next-i18next": "catalog:", | "next-i18next": "catalog:", | ||
| "prettier": "3.2.4", | "prettier": "catalog:", | ||
| "react-i18next": "catalog:", | "react-i18next": "catalog:", | ||
| "turbo": "2.9.9", | "turbo": "2.9.9", | ||
| "typescript-eslint": "catalog:eslint", | |||
| "typescript": "catalog:", | "typescript": "catalog:", | ||
| "vitest": "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": { | "engines": { | ||
| "node": ">=20", | "node": ">=20.19.0", | ||
| "pnpm": "10.x" | "pnpm": "10.x" | ||
| }, | }, | ||
| "packageManager": "pnpm@10.33.4" | "packageManager": "pnpm@10.33.4" | ||
| ... | ... |
| ... | @@ -2,7 +2,7 @@ | ... | @@ -2,7 +2,7 @@ |
| "name": "@fastgpt/web", | "name": "@fastgpt/web", | ||
| "version": "1.0.0", | "version": "1.0.0", | ||
| "engines": { | "engines": { | ||
| "node": ">=20", | "node": ">=20.19.0", | ||
| "pnpm": "10.x" | "pnpm": "10.x" | ||
| }, | }, | ||
| "dependencies": { | "dependencies": { | ||
| ... | ... |
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
| ... | @@ -13,10 +13,11 @@ | ... | @@ -13,10 +13,11 @@ |
| "test:watch": "vitest -c vitest.config.ts", | "test:watch": "vitest -c vitest.config.ts", | ||
| "build:workers": "tsx scripts/build-workers.ts", | "build:workers": "tsx scripts/build-workers.ts", | ||
| "typecheck": "tsc --noEmit --pretty", | "typecheck": "tsc --noEmit --pretty", | ||
| "lint": "eslint ./src", | |||
| "build:workers:watch": "tsx scripts/build-workers.ts --watch" | "build:workers:watch": "tsx scripts/build-workers.ts --watch" | ||
| }, | }, | ||
| "engines": { | "engines": { | ||
| "node": ">=20", | "node": ">=20.19.0", | ||
| "pnpm": "10.x" | "pnpm": "10.x" | ||
| }, | }, | ||
| "dependencies": { | "dependencies": { | ||
| ... | @@ -105,12 +106,11 @@ | ... | @@ -105,12 +106,11 @@ |
| "@types/react": "catalog:", | "@types/react": "catalog:", | ||
| "@types/react-dom": "catalog:", | "@types/react-dom": "catalog:", | ||
| "@types/react-syntax-highlighter": "^15.5.6", | "@types/react-syntax-highlighter": "^15.5.6", | ||
| "@typescript-eslint/eslint-plugin": "catalog:", | "eslint": "catalog:eslint", | ||
| "@typescript-eslint/parser": "catalog:", | "eslint-config-next": "catalog:eslint", | ||
| "eslint": "catalog:", | |||
| "eslint-config-next": "catalog:", | |||
| "tailwindcss": "^3", | "tailwindcss": "^3", | ||
| "tsx": "catalog:", | "tsx": "catalog:", | ||
| "typescript-eslint": "catalog:eslint", | |||
| "typescript": "catalog:", | "typescript": "catalog:", | ||
| "vitest": "catalog:" | "vitest": "catalog:" | ||
| } | } | ||
| ... | ... |
projects/marketplace/.eslintrc.json
deleted
100644 → 0
| ... | @@ -5,11 +5,10 @@ | ... | @@ -5,11 +5,10 @@ |
| "scripts": { | "scripts": { | ||
| "dev": "next dev", | "dev": "next dev", | ||
| "build": "next build", | "build": "next build", | ||
| "start": "next start", | "start": "next start" | ||
| "lint": "next lint" | |||
| }, | }, | ||
| "engines": { | "engines": { | ||
| "node": ">=20", | "node": ">=20.19.0", | ||
| "pnpm": "10.x" | "pnpm": "10.x" | ||
| }, | }, | ||
| "dependencies": { | "dependencies": { | ||
| ... | @@ -39,8 +38,8 @@ | ... | @@ -39,8 +38,8 @@ |
| "@types/node": "catalog:", | "@types/node": "catalog:", | ||
| "@types/react": "catalog:", | "@types/react": "catalog:", | ||
| "@types/react-dom": "catalog:", | "@types/react-dom": "catalog:", | ||
| "eslint": "catalog:", | "eslint": "catalog:eslint", | ||
| "eslint-config-next": "catalog:", | "eslint-config-next": "catalog:eslint", | ||
| "postcss": "^8", | "postcss": "^8", | ||
| "tailwindcss": "^3.4.1", | "tailwindcss": "^3.4.1", | ||
| "typescript": "catalog:" | "typescript": "catalog:" | ||
| ... | ... |
| ... | @@ -39,7 +39,7 @@ | ... | @@ -39,7 +39,7 @@ |
| "access": "public" | "access": "public" | ||
| }, | }, | ||
| "engines": { | "engines": { | ||
| "node": ">=20", | "node": ">=20.19.0", | ||
| "pnpm": "10.x" | "pnpm": "10.x" | ||
| }, | }, | ||
| "license": "Apache-2.0", | "license": "Apache-2.0", | ||
| ... | ... |
| ... | @@ -53,7 +53,7 @@ | ... | @@ -53,7 +53,7 @@ |
| "access": "public" | "access": "public" | ||
| }, | }, | ||
| "engines": { | "engines": { | ||
| "node": ">=20", | "node": ">=20.19.0", | ||
| "pnpm": "10.x" | "pnpm": "10.x" | ||
| }, | }, | ||
| "license": "Apache-2.0", | "license": "Apache-2.0", | ||
| ... | ... |
Please
register
or
sign in
to comment