chore: Extract lint config
Showing
.npmrc
0 → 100644
_internal/.gitkeep
已删除
100644 → 0
internal/ts-config/package.json
0 → 100644
... | ... | @@ -16,36 +16,36 @@ |
"url": "https://github.com/anncwb" | ||
}, | ||
"scripts": { | ||
"commit": "czg", | ||
"bootstrap": "pnpm install", | ||
"serve": "npm run dev", | ||
"dev": "vite", | ||
"build": "cross-env NODE_ENV=production vite build && esno ./build/script/postBuild.ts", | ||
"build:test": "cross-env vite build --mode test && esno ./build/script/postBuild.ts", | ||
"build:no-cache": "pnpm clean:cache && npm run build", | ||
"report": "cross-env REPORT=true npm run build", | ||
"type:check": "vue-tsc --noEmit --skipLibCheck", | ||
"preview": "npm run build && vite preview", | ||
"preview:dist": "vite preview", | ||
"log": "conventional-changelog -p angular -i CHANGELOG.md -s", | ||
"build:test": "cross-env vite build --mode test && esno ./build/script/postBuild.ts", | ||
"clean:cache": "rimraf node_modules/.cache/ && rimraf node_modules/.vite", | ||
"clean:lib": "rimraf node_modules", | ||
"commit": "czg", | ||
"dev": "vite", | ||
"gen:icon": "esno ./build/generate/icon/index.ts", | ||
"preinstall": "npx only-allow pnpm", | ||
"postinstall": "turbo run stub", | ||
"lint:eslint": "eslint --cache --max-warnings 0 \"{src,mock}/**/*.{vue,ts,tsx}\" --fix", | ||
"lint:prettier": "prettier --write \"src/**/*.{js,json,tsx,css,less,scss,vue,html,md}\"", | ||
"lint:stylelint": "stylelint --cache --fix \"**/*.{vue,less,postcss,css,scss}\" --cache --cache-location node_modules/.cache/stylelint/", | ||
"lint:lint-staged": "lint-staged", | ||
"test:unit": "jest", | ||
"test:gzip": "npx http-server dist --cors --gzip -c-1", | ||
"test:br": "npx http-server dist --cors --brotli -c-1", | ||
"reinstall": "rimraf pnpm-lock.yaml && rimraf package.lock.json && rimraf node_modules && npm run bootstrap", | ||
"preinstall": "npx only-allow pnpm", | ||
"lint:stylelint": "stylelint \"**/*.{vue,css,less.scss}\" --fix --cache --cache-location node_modules/.cache/stylelint/", | ||
"log": "conventional-changelog -p angular -i CHANGELOG.md -s", | ||
"prepare": "husky install", | ||
"gen:icon": "esno ./build/generate/icon/index.ts" | ||
"preview": "npm run build && vite preview", | ||
"preview:dist": "vite preview", | ||
"reinstall": "rimraf pnpm-lock.yaml && rimraf package.lock.json && rimraf node_modules && npm run bootstrap", | ||
"report": "cross-env REPORT=true npm run build", | ||
"serve": "npm run dev", | ||
"test:br": "npx http-server dist --cors --brotli -c-1", | ||
"test:gzip": "npx http-server dist --cors --gzip -c-1", | ||
"test:unit": "jest", | ||
"type:check": "vue-tsc --noEmit --skipLibCheck" | ||
}, | ||
"lint-staged": { | ||
"*.{js,jsx,ts,tsx}": [ | ||
"eslint --fix", | ||
"prettier --write" | ||
"prettier --write", | ||
"eslint --fix" | ||
], | ||
"{!(package)*.json,*.code-snippets,.!(browserslist)*rc}": [ | ||
"prettier --write--parser json" | ||
... | ... | @@ -54,13 +54,13 @@ |
"prettier --write" | ||
], | ||
"*.vue": [ | ||
"eslint --fix", | ||
"prettier --write", | ||
"eslint --fix", | ||
"stylelint --fix" | ||
], | ||
"*.{scss,less,styl,html}": [ | ||
"stylelint --fix", | ||
"prettier --write" | ||
"prettier --write", | ||
"stylelint --fix" | ||
], | ||
"*.md": [ | ||
"prettier --write" | ||
... | ... | @@ -133,8 +133,8 @@ |
"@types/qs": "^6.9.7", | ||
"@types/showdown": "^2.0.0", | ||
"@types/sortablejs": "^1.15.1", | ||
"@typescript-eslint/eslint-plugin": "^5.57.0", | ||
"@typescript-eslint/parser": "^5.57.0", | ||
"@vben/eslint-config": "workspace:*", | ||
"@vben/stylelint-config": "workspace:*", | ||
"@vitejs/plugin-vue": "^4.1.0", | ||
"@vitejs/plugin-vue-jsx": "^3.0.1", | ||
"@vue/compiler-sfc": "^3.2.47", | ||
... | ... | @@ -145,31 +145,24 @@ |
"cz-git": "^1.6.1", | ||
"czg": "^1.6.1", | ||
"dotenv": "^16.0.3", | ||
"eslint": "^8.37.0", | ||
"eslint-config-prettier": "^8.8.0", | ||
"eslint-plugin-prettier": "^4.2.1", | ||
"eslint-plugin-vue": "^9.10.0", | ||
"esno": "^0.16.3", | ||
"fs-extra": "^11.1.1", | ||
"husky": "^8.0.3", | ||
"inquirer": "^9.1.5", | ||
"less": "^4.1.3", | ||
"lint-staged": "13.2.0", | ||
"npm-run-all": "^4.1.5", | ||
"picocolors": "^1.0.0", | ||
"postcss": "^8.4.21", | ||
"postcss-html": "^1.5.0", | ||
"postcss-less": "^6.0.0", | ||
"prettier": "^2.8.7", | ||
"prettier-plugin-packagejson": "^2.4.3", | ||
"rimraf": "^4.4.1", | ||
"rollup-plugin-visualizer": "^5.9.0", | ||
"sass": "^1.60.0", | ||
"stylelint": "^15.4.0", | ||
"stylelint-config-recommended": "^11.0.0", | ||
"stylelint-config-recommended-vue": "^1.4.0", | ||
"stylelint-config-standard": "^32.0.0", | ||
"stylelint-order": "^6.0.3", | ||
"turbo": "^1.8.8", | ||
"typescript": "^5.0.3", | ||
"unbuild": "^1.2.0", | ||
"vite": "^4.3.0-beta.1", | ||
"vite-plugin-compression": "^0.5.1", | ||
"vite-plugin-html": "^3.2.0", | ||
... | ... | @@ -177,7 +170,6 @@ |
"vite-plugin-purge-icons": "^0.9.2", | ||
"vite-plugin-svg-icons": "^2.0.1", | ||
"vite-plugin-windicss": "^1.8.10", | ||
"vue-eslint-parser": "^9.1.1", | ||
"vue-tsc": "^1.2.0" | ||
}, | ||
"packageManager": "pnpm@8.1.0", | ||
... | ... |
此差异已折叠。
此差异已折叠。
turbo.json
0 → 100644
此差异已折叠。
想要评论请 注册 或 登录