chore: 使用了 f2elint 规范项目开发

使用阿里巴巴前端规约 规范开发

参考文档:
https://alibaba.github.io/f2e-spec/zh/
https://github.com/alibaba/f2e-spec
https://git.onemue.cn/flexlark/f2e-spec
This commit is contained in:
2025-08-28 12:48:20 +08:00
parent aaa949bd7d
commit f11ea79748
10 changed files with 2765 additions and 96 deletions

View File

@@ -1,36 +1,61 @@
{
"name": "app-template",
"private": true,
"homepage": "https://git.onemue.cn/flexlark/app-template#readme",
"bugs": {
"url": "https://git.onemue.cn/flexlark/app-template/issues"
},
"repository": {
"type": "git",
"url": "git+https://git.onemue.cn/flexlark/app-template.git"
},
"author": {
"name": "eeymoo",
"email": "eeymoo@xmail.fun"
},
"workspaces": [
"./apps/*",
"./packages/*"
],
"scripts": {
"android": "cd apps/expo && yarn android",
"build": "yarn workspaces foreach --all --exclude next-app run build",
"check-tamagui": "tamagui check",
"ci:eslint": "eslint -f json src -o ./.ci/eslint.json",
"postinstall": "yarn check-tamagui && yarn build",
"ios": "cd apps/expo && yarn ios",
"lint": "eslint .",
"lint:fix": "prettier --write . && eslint --fix .",
"native": "cd apps/expo && yarn start",
"native:prebuild": "cd apps/expo && yarn prebuild",
"ios": "cd apps/expo && yarn ios",
"android": "cd apps/expo && yarn android",
"watch": "ultra -r --no-pretty --concurrency 400 watch",
"prepare": "husky",
"test": "vitest run",
"test:watch": "vitest",
"upgrade:tamagui": "yarn up '*tamagui*'@latest '@tamagui/*'@latest",
"upgrade:tamagui:canary": "yarn up '*tamagui*'@canary '@tamagui/*'@canary",
"vercel:install": "yarn set version 3.5 && yarn install",
"watch": "ultra -r --no-pretty --concurrency 400 watch",
"web": "yarn build && cd apps/next && yarn next",
"web:extract": "DISABLE_EXTRACTION=false yarn workspace next-app dev",
"web:prod": "yarn workspace next-app build",
"web:prod:serve": "yarn workspace next-app serve",
"postinstall": "yarn check-tamagui && yarn build",
"build": "yarn workspaces foreach --all --exclude next-app run build",
"upgrade:tamagui": "yarn up '*tamagui*'@latest '@tamagui/*'@latest",
"upgrade:tamagui:canary": "yarn up '*tamagui*'@canary '@tamagui/*'@canary",
"check-tamagui": "tamagui check",
"test": "vitest run",
"test:watch": "vitest",
"prepare": "husky"
"web:prod:serve": "yarn workspace next-app serve"
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"lint-staged": {
"*.{cjs,cts,js,jsx,mjs,mts,ts,tsx,vue}": "eslint --fix",
"*.{cjs,css,cts,html,js,json,jsx,less,md,mjs,mts,scss,ts,tsx,vue,yaml,yml}": "prettier --write"
},
"prettier": "prettier-config-ali",
"resolutions": {
"react": "19.0.0",
"react-dom": "19.0.0",
"react-refresh": "^0.14.0",
"react-native-svg": "15.11.2",
"react-native-web": "~0.19.12"
"react-native-web": "~0.19.12",
"react-refresh": "^0.14.0"
},
"dependencies": {
"@babel/runtime": "^7.24.6",
@@ -45,12 +70,22 @@
"ultra-runner": "^3.10.5",
"vitest": "^2.1.1"
},
"devDependencies": {
"@biomejs/biome": "^1.9.3",
"@commitlint/cli": "^19.8.1",
"@commitlint/config-conventional": "^19.8.1",
"eslint": "^9.34.0",
"eslint-config-ali": "^16.5.0",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-prettier": "^5.5.4",
"husky": "^9.1.7",
"lint-staged": "^16.1.5",
"prettier": "^3.6.2",
"prettier-config-ali": "^1.5.0"
},
"packageManager": "yarn@4.5.0",
"engines": {
"node": "22",
"npm": "10.8"
},
"devDependencies": {
"@biomejs/biome": "^1.9.3"
}
}