Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
FliPPeDround committed Sep 9, 2024
1 parent 1c8758b commit 838dea0
Show file tree
Hide file tree
Showing 22 changed files with 3,283 additions and 2,433 deletions.
7 changes: 3 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,15 @@
"taze",
"Unocss"
],
"eslint.experimental.useFlatConfig": true,

"prettier.enable": false,
"editor.formatOnSave": false,
// Auto fix

"editor.codeActionsOnSave": {
"source.fixAll": "never",
"source.fixAll.eslint": "explicit",
"source.organizeImports": "never"
},
// Enable eslint for all supported languages

"eslint.validate": [
"javascript",
"javascriptreact",
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

<h1 align="center">✨💚create uni💚✨</h1>

<p align="center">
Expand Down Expand Up @@ -40,7 +39,7 @@ npm create uni <项目名称> --ts -m pinia -m uniUse -u ano -e
```

```shell
npx create-uni@latest --info
npx create-uni@latest --info
# --info 获取当前项目环境信息
```

Expand Down
3 changes: 3 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ export default uni({
rules: {
'no-console': 'warn',
},
ignores: [
'dist/outfile.cjs',
],
})
32 changes: 16 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "create-uni",
"type": "module",
"version": "1.5.1",
"packageManager": "pnpm@8.6.12",
"packageManager": "pnpm@9.9.0",
"description": "轻松创建你的 uni-app 项目",
"author": "FliPPeDround <[email protected]>",
"license": "MIT",
Expand Down Expand Up @@ -34,35 +34,35 @@
"build": "tsup",
"dev": "tsup --watch",
"lint": "eslint .",
"lint:fix": "eslint --fix .",
"lint:fix": "eslint . --fix",
"prepublishOnly": "nr build",
"release": "bumpp",
"typecheck": "tsc --noEmit",
"up": "cd ./template && pnpx taze@latest major -w -r && cd ./base && pnpx @dcloudio/uvm@latest --manager pnpm"
},
"devDependencies": {
"@antfu/ni": "^0.21.12",
"@antfu/utils": "^0.7.7",
"@antfu/ni": "^0.23.0",
"@antfu/utils": "^0.7.10",
"@types/ejs": "^3.1.5",
"@types/envinfo": "^7.8.3",
"@types/envinfo": "^7.8.4",
"@types/minimist": "^1.2.5",
"@types/node": "^18.19.11",
"@types/node": "^18.19.50",
"@types/prompts": "^2.4.9",
"@uni-helper/eslint-config": "^0.0.5",
"bumpp": "^9.3.0",
"ejs": "^3.1.9",
"envinfo": "^7.12.0",
"eslint": "^8.56.0",
"@uni-helper/eslint-config": "^0.2.0",
"bumpp": "^9.5.2",
"ejs": "^3.1.10",
"envinfo": "^7.13.0",
"eslint": "^9.10.0",
"json5": "^2.2.3",
"kolorist": "^1.8.0",
"lint-staged": "^15.2.1",
"lint-staged": "^15.2.10",
"minimist": "^1.2.8",
"path-exists": "^5.0.0",
"prompts": "^2.4.2",
"simple-git-hooks": "^2.9.0",
"terser": "^5.31.0",
"tsup": "^8.0.2",
"typescript": "^5.3.3"
"simple-git-hooks": "^2.11.1",
"terser": "^5.31.6",
"tsup": "^8.2.4",
"typescript": "^5.5.4"
},
"simple-git-hooks": {
"pre-commit": "pnpm lint-staged"
Expand Down
Loading

0 comments on commit 838dea0

Please sign in to comment.